[[!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:
git annex import /dir
mv foo bar
...
git add .
git annex fix
git commit
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:
git annex import /dir -c annex.alwayscommit=false
mv foo bar
...
git annex add
git commit
"""]]