diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-11 14:54:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-11 14:54:29 -0400 |
commit | dffe9499630a8dded76b23ef762f03aa264dc45c (patch) | |
tree | 5dcbfff9b0a5ba070c85336fcb643f6a528816f4 /Annex.hs | |
parent | 8a8987579f8efe290e5084202a416f72eec491a6 (diff) |
Optimize both pre-commit and lock subcommands.
isLocked was doing the expensive check before the cheap one. Let's not
fork git diff twice per file when committing, especially.
git diff is still run more than strictly necessary (ie, more than once)
if multiple unlocked files are being committed. But much better now.
Diffstat (limited to 'Annex.hs')
0 files changed, 0 insertions, 0 deletions