diff options
author | http://joeyh.name/ <http://joeyh.name/@web> | 2014-10-09 19:57:54 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-10-09 19:57:54 +0000 |
commit | 8a0dfff8af5cd6449eb47c2326dcf05723aa97ab (patch) | |
tree | f51e9dbdd8a1cc70af70c31bbedce1cff4c4d9f2 | |
parent | cd53649923ab1c49494acd17593b8ad65b7c531c (diff) |
Added a comment
-rw-r--r-- | doc/forum/How_to_list_all_existing_metadata_types__63__/comment_1_a8c30f697f32a3807661a59482d79b18._comment | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/forum/How_to_list_all_existing_metadata_types__63__/comment_1_a8c30f697f32a3807661a59482d79b18._comment b/doc/forum/How_to_list_all_existing_metadata_types__63__/comment_1_a8c30f697f32a3807661a59482d79b18._comment new file mode 100644 index 000000000..3405ea4d6 --- /dev/null +++ b/doc/forum/How_to_list_all_existing_metadata_types__63__/comment_1_a8c30f697f32a3807661a59482d79b18._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="209.250.56.54" + subject="comment 1" + date="2014-10-09T19:57:54Z" + content=""" +git-annex doesn't currently have a way to generate those lists itself, but you could use `git annex metadata --json` to get the metadata of all files, and pipe that json into a parser to get the data you want. + +The output could also be parsed in non-json mode. For example, this will list the tags: + + git annex metadata | grep '^ tag=' | cut -d '=' -f 2 | sort | uniq + +Although it's possible for metadata to contain newlines, and so parsing the json is a more reliable approach. + +Another nice way to see all the tags is to switch to a view of all tags: + + git annex view 'tag=*' + ls +"""]] |