summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-08-20 10:27:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-08-20 10:27:24 -0400
commit3254d62ee15c438d3276b73bb71895567737910e (patch)
treed458a75e364ee26d8fe14f81455dc7fddb7a2e75 /doc/git-annex.mdwn
parent546a90ac59c8ddb687e7fd8ba7f22e0022dd501a (diff)
parent3a2dfa4044875a73c7c96275304fda8ffe4dc637 (diff)
Merge branch 'duplicate'
Conflicts: debian/changelog
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 60736d579..44abd6943 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -190,6 +190,28 @@ subdirectories).
git annex import /media/camera/DCIM/
+ By default, importing two files with the same contents from two different
+ locations will result in both files being added to the repository.
+ (With all checksumming backends, including the default SHA256E,
+ only one copy of the data will be stored.)
+
+ To not delete files from the import location, use the
+ --duplicate option. This could allow importing the same files repeatedly
+ to different locations in a repository. More likely, it could be used to
+ import the same files to a number of different branches or separate git
+ repositories.
+
+ To only import files whose content has not been seen before by git-annex,
+ use the --deduplicate option. Duplicate files will be deleted from the
+ import location.
+
+ The --clean-duplicates option does not import any new files, but any files
+ found in the import location that are duplicates of content in the annex
+ are deleted.
+
+ (Note that using --deduplicate or --clean-duplicates with the WORM
+ backend does not look at file content, but filename and mtime.)
+
* importfeed [url ...]
Imports the contents of podcast feeds. Only downloads files whose