git-annex/Command
Joey Hess 547d7745fb 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.
2013-02-06 12:44:19 -04:00
..
Add.hs assistant: Fix location log when adding new file in direct mode. 2013-02-05 13:41:48 -04:00
AddUnused.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
AddUrl.hs addurl in direct mode 2013-01-06 17:34:44 -04:00
Assistant.hs where indentation 2012-11-12 01:05:04 -04:00
Commit.hs where indentation 2012-11-12 01:05:04 -04:00
ConfigList.hs more descriptive name for oneshot 2012-09-15 20:46:38 -04:00
Copy.hs More commands work in direct mode repositories: find, whereis, move, copy, drop, log. 2013-01-05 17:17:04 -04:00
Dead.hs dead: Remove dead repository from all groups. 2012-10-10 15:39:13 -04:00
Describe.hs lint 2011-11-11 01:52:58 -04:00
Direct.hs convert notBareRepo to a CommandCheck 2012-12-29 14:45:19 -04:00
Drop.hs drop: fix misleading message 2013-01-16 21:44:42 -04:00
DropKey.hs more descriptive name for oneshot 2012-09-15 20:46:38 -04:00
DropUnused.hs webapp and assistant glacier support 2012-11-24 16:30:15 -04:00
Find.hs More commands work in direct mode repositories: find, whereis, move, copy, drop, log. 2013-01-05 17:17:04 -04:00
Fix.hs guard readSymbolicLink 2013-01-05 16:07:27 -04:00
FromKey.hs convert notBareRepo to a CommandCheck 2012-12-29 14:45:19 -04:00
Fsck.hs fsck: Detect and fix consistency errors in direct mode mapping files. 2013-01-19 14:11:23 -04:00
Get.hs drop: Suggest using git annex move when numcopies prevents dropping a file. 2013-01-09 18:53:59 -04:00
Group.hs simplify 2012-10-01 15:17:21 -04:00
Help.hs where indentation 2012-11-12 01:05:04 -04:00
Import.hs convert notBareRepo to a CommandCheck 2012-12-29 14:45:19 -04:00
InAnnex.hs where indentation 2012-11-12 01:05:04 -04:00
Indirect.hs convert notBareRepo to a CommandCheck 2012-12-29 14:45:19 -04:00
Init.hs where indentation 2012-11-12 01:05:04 -04:00
InitRemote.hs whitespace fixes 2012-12-13 00:45:27 -04:00
Lock.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Log.hs More commands work in direct mode repositories: find, whereis, move, copy, drop, log. 2013-01-05 17:17:04 -04:00
Map.hs where indentation 2012-11-12 01:05:04 -04:00
Merge.hs improve alwayscommit=false mode 2012-02-25 16:18:55 -04:00
Migrate.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Move.hs More commands work in direct mode repositories: find, whereis, move, copy, drop, log. 2013-01-05 17:17:04 -04:00
PreCommit.hs pre-commit: Update direct mode mappings. 2013-02-06 12:44:19 -04:00
RecvKey.hs safe recv-key in direct mode 2013-01-11 16:03:45 -04:00
Reinject.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
ReKey.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Semitrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
SendKey.hs Special remotes now all rollback storage of keys that get modified during the transfer, which can happen in direct mode. 2013-01-09 18:42:29 -04:00
Status.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
Sync.hs avoid queueing rm of no files 2013-02-05 15:11:05 -04:00
TransferInfo.hs fixes for transfer resume 2012-09-24 13:18:16 -04:00
TransferKey.hs quiet calls to transferkey 2012-09-24 13:36:05 -04:00
Trust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unannex.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Ungroup.hs simplify 2012-10-01 15:17:21 -04:00
Uninit.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Unlock.hs block all commands that don't work in direct mode 2012-12-29 14:28:19 -04:00
Untrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unused.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
Upgrade.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Version.hs where indentation 2012-11-12 01:05:04 -04:00
Vicfg.hs vicfg: Quote filename. Closes: #696193 2012-12-18 12:19:24 -04:00
Watch.hs convert notBareRepo to a CommandCheck 2012-12-29 14:45:19 -04:00
WebApp.hs webapp: Now allows restarting any threads that crash. 2013-01-26 17:09:33 +11:00
Whereis.hs More commands work in direct mode repositories: find, whereis, move, copy, drop, log. 2013-01-05 17:17:04 -04:00
XMPPGit.hs flush stdout 2012-11-09 14:33:34 -04:00