547d7745fb
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. |
||
---|---|---|
.. | ||
AutoCorrect.hs | ||
Branch.hs | ||
CatFile.hs | ||
CheckAttr.hs | ||
Command.hs | ||
Config.hs | ||
Construct.hs | ||
CurrentRepo.hs | ||
DiffTree.hs | ||
Filename.hs | ||
FilePath.hs | ||
HashObject.hs | ||
Index.hs | ||
LsFiles.hs | ||
LsTree.hs | ||
Merge.hs | ||
Queue.hs | ||
Ref.hs | ||
Remote.hs | ||
Sha.hs | ||
SharedRepository.hs | ||
Types.hs | ||
UnionMerge.hs | ||
UpdateIndex.hs | ||
Url.hs | ||
Version.hs |