I'm slowly adding metadata to https://github.com/ocharles/papers. For now, I'm mainly interested in setting year
and author
fields on files. There are a lot of files here though, so it's difficult to to work out which need metadata and which don't.
Would it be possible to have a git annex metadata -s author='*'
also have all files in the top level if they don't have an author set at all, or something? Basically, I'm looking for a way to get a view where files don't have author
set at all, so I can fix that.
You can do this, but it involves setting that field's value to something.
This will tag all files that don't have any 'field' values with 'untagged', so when you switch to the view, they will show up under 'untagged' (and you move/commit them to tag them).
Actually, you can do it without setting the field to a dummy value.
For example, to find all files without an author metadata:
Same switches can be used with other commands, including the metadata command.
You can also use the git-annex view command to enter a branch that only contains the files without metadata set:
(Unfortunately, adding metadata to a file does not currently update this view branch.)