diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-06 12:40:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-06 12:44:19 -0400 |
commit | 48d59dbad11a2f99a0003f5f3bd93734429be11d (patch) | |
tree | ef74a5cb149d78c8dc3e74732ae52f5afb73f274 /debian | |
parent | 6be68947dcf80c99ed5135c1a968641dca199555 (diff) |
pre-commit: Update direct mode mappings.
Making the pre-commit hook look at git diff-index to find changed direct
mode files and update the mappings works pretty well.
One case where it does not work is when a file is git annex added, and then
git rmed, and then this is committed. That's a no-op commit, so the hook
probably doesn't even run, and it certianly never notices that the file
was deleted, so the mapping will still have the original filename in it.
For this and other reasons, it's important that the mappings still be
treated as possibly inconsistent.
Also, the assistant now allows the pre-commit hook to run when in direct
mode, so the mappings also get updated there.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index c289794c9..e67147f3d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ git-annex (3.20130125) UNRELEASED; urgency=low * assistant: Ignore .DS_Store on OSX. * assistant: Fix location log when adding new file in direct mode. * Deal with stale mappings for deleted file in direct mode. + * pre-commit: Update direct mode mappings. -- Joey Hess <joeyh@debian.org> Sat, 26 Jan 2013 15:48:40 +1100 |