Added a comment

This commit is contained in:
http://joeyh.name/ 2013-07-18 19:27:41 +00:00 committed by admin
parent 80b4f7c898
commit 21ab2533b6

View file

@ -0,0 +1,31 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="4.154.0.140"
subject="comment 4"
date="2013-07-18T19:27:41Z"
content="""
It seems to me that what you're looking for is:
<pre>
git annex import /dir
mv foo bar
...
git add .
git annex fix
git commit
</pre>
This avoids the minor overhead of `git annex add` when run on a symlink updating the location tracking information.
(Note that the manual call to `git annex fix` there is entirely unnecessary, since the pre-commit hook does the same thing when you commit.)
Alternatively:
<pre>
git annex import /dir -c annex.alwayscommit=false
mv foo bar
...
git annex add
git commit
</pre>
"""]]