blob: 41f4e9db8f3403116d45dadaf5aab9675a86989c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>
"""]]
|