diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-15 14:23:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-15 14:23:08 -0400 |
commit | e110fd9b8b87fcb6da2ecdac0a93a1f71f80552f (patch) | |
tree | a227f6797f15bfa3ad3310ff5a447b7cf9b81584 /doc/git-annex.mdwn | |
parent | 1fc480e5664930992fbd697c27cc365191d873d3 (diff) |
found a way to make uninit always fast
To do so, I slightly changed the behavior of unannex. Now in fast mode, it
only makes a hard link when the annexed file's link count is 1. This avoids
unannexing 2 files with the same content in fast mode from hard linking
them together. (One will end up hard linked to the annex, which the docs
warn about.)
With that change, uninit can simply always run unannex in fast mode. Since
.git/annex/objects is being blown away anyway, there's no worry in this
case about a hard link pointing into it causing an annexed object to be
modified.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r-- | doc/git-annex.mdwn | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index 9d896c6a0..d6f3d21b2 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -845,10 +845,6 @@ subdirectories). repository, and remove all of git-annex's other data, leaving you with a git repository plus the previously annexed files. - Normally this does a slow copy of every file. In `--fast` mode, this copy - is avoided, but if two files in the repository have the same content, - they will end up hard linked together. - # PLUMBING COMMANDS * `pre-commit [path ...]` |