diff options
-rw-r--r-- | doc/forum/Is_it_possible_to_create_a_view_on_files_that___42__dont__42___have_a_field_set__63__/comment_3_cda315119bd3ccce74bc3df8dd56bf1a._comment | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/forum/Is_it_possible_to_create_a_view_on_files_that___42__dont__42___have_a_field_set__63__/comment_3_cda315119bd3ccce74bc3df8dd56bf1a._comment b/doc/forum/Is_it_possible_to_create_a_view_on_files_that___42__dont__42___have_a_field_set__63__/comment_3_cda315119bd3ccce74bc3df8dd56bf1a._comment new file mode 100644 index 000000000..46b724ec9 --- /dev/null +++ b/doc/forum/Is_it_possible_to_create_a_view_on_files_that___42__dont__42___have_a_field_set__63__/comment_3_cda315119bd3ccce74bc3df8dd56bf1a._comment @@ -0,0 +1,22 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2016-05-03T17:48:07Z" + content=""" +Actually, you can do it without setting the field to a dummy value. + +For example, to find all files without an author metadata: + + git annex find --not --metadata 'author=*' + +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: + + git annex view 'author!=*' + +(Unfortunately, adding metadata to a file does not currently update this +view branch.) +"""]] |