[[!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>
"""]]
