diff options
author | 2011-12-22 20:29:24 -0400 | |
---|---|---|
committer | 2011-12-23 01:08:19 -0400 | |
commit | 13a0c292b3bc72917cb8ce89e96f805602e81904 (patch) | |
tree | ff5bcf203dcc4c7829b119bd25ef70ce528c6ca8 /doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment | |
parent | db964e358f16d19e9a2e6124d6be8a9c87fdd88b (diff) |
update example to actually work with new --format option
Diffstat (limited to 'doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment')
-rw-r--r-- | doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment b/doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment index 93d3d41f4..5d8ac8e61 100644 --- a/doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment +++ b/doc/todo/wishlist:_Provide_a___34__git_annex__34___command_that_will_skip_duplicates/comment_6_f24541ada1c86d755acba7e9fa7cff24._comment @@ -8,7 +8,9 @@ My main concern with putting this in git-annex is that finding duplicates necess So I would rather come at this from a different angle.. like providing a way to output a list of files and their associated keys, which the user can then use in their own shell pipelines to find duplicate keys: - git annex find --include '*' --format=\"%f %k\n\" | sort foo --key 2 | uniq --all-repeated --skip-fields=1 + git annex find --include '*' --format='${file} ${key}\n' | sort --key 2 | uniq --all-repeated --skip-fields=1 -(Making that properly handle filenames with spaces is left as an exercise for the reader..) +Which is implemented now! + +(Making that pipeline properly handle filenames with spaces is left as an exercise for the reader..) """]] |