diff options
author | 2015-09-03 08:05:52 +0000 | |
---|---|---|
committer | 2015-09-03 08:05:52 +0000 | |
commit | 55bfaac89abdad5d944f41443e22c89f04da5afa (patch) | |
tree | ddbaab1a45df034cca6a0fab94e3c4e58b410c53 /doc | |
parent | 926f2526557188e1af34e4d886bd33c072e8b731 (diff) |
Added a comment
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/test_whether_a_file_is_already_annexed/comment_3_21f51c99b1aac8b3292f60bd83493e94._comment | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/forum/test_whether_a_file_is_already_annexed/comment_3_21f51c99b1aac8b3292f60bd83493e94._comment b/doc/forum/test_whether_a_file_is_already_annexed/comment_3_21f51c99b1aac8b3292f60bd83493e94._comment new file mode 100644 index 000000000..769c1c2b7 --- /dev/null +++ b/doc/forum/test_whether_a_file_is_already_annexed/comment_3_21f51c99b1aac8b3292f60bd83493e94._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="CandyAngel" + subject="comment 3" + date="2015-09-03T08:05:52Z" + content=""" +Hm.. having some kind of exposure of the key generation code on the command line would actually be pretty useful. So you can do something like: + + find -type f | xargs git annex genkey --format '${key} ${file}' + +Probably worth a TODO, really. + +Regarding your situation, one way of doing it would be to recursively copy the photo directory as hardlinks, `git annex import --clean-duplicates` the hardlinked copies, then diff the directories. This would give you a list of removals and those removals are already in the repo. + +Or if you just want to remove them, just run '*git annex import --clean-duplicates*' on the original photos directory. **NOTE: There was recently an issue with git-annex deleting files that it didn't have any known copies of, so a recent version is highly recommended if using --clean-duplicates.** +"""]] |