diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-09-09 13:49:11 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-09-09 13:49:11 -0400 |
commit | 7a6e08729168e5d3755112c6649c7e88590d12eb (patch) | |
tree | 8e295b0b9a9c9d84944a71335d06789e91a83bb9 | |
parent | abe9f34c0b6de9dca961e3d6a27da50b73fdc7cf (diff) |
response
-rw-r--r-- | doc/forum/test_whether_a_file_is_already_annexed/comment_4_2c61629777f47ce3e697298d5736f997._comment | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/forum/test_whether_a_file_is_already_annexed/comment_4_2c61629777f47ce3e697298d5736f997._comment b/doc/forum/test_whether_a_file_is_already_annexed/comment_4_2c61629777f47ce3e697298d5736f997._comment new file mode 100644 index 000000000..d5d2d1dea --- /dev/null +++ b/doc/forum/test_whether_a_file_is_already_annexed/comment_4_2c61629777f47ce3e697298d5736f997._comment @@ -0,0 +1,22 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 4""" + date="2015-09-09T17:43:22Z" + content=""" +You can use either `git-annex import --deduplicate` +or `git annex import --skip-duplicates` to import files from a directory +except for ones already in the repository. The former deletes the duplicate +files, and the latter leaves them as-is. + +I don't think there's currently a good stand-alone way to check if a file is a +duplicate of content already in the annex, before adding it. +Would need a new command to be added. + +Of course, if you simply `git annex add` everything, regular hash based +deduplication will point the duplicate file to the same object used by +the file when you added it earlier. So, you don't need to worry about +adding duplicates wasting much space. They may make your repo more +cluttered than you like, is all. + +See also this tip: [[tips/finding_duplicate_files]]. +"""]] |