summaryrefslogtreecommitdiff
path: root/parse-options.c
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@MIT.EDU>2009-05-27 19:23:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-29 06:56:19 (GMT)
commitb7dd2d20fad1036ce7da0b635a8bb14cd4230f1a (patch)
tree03de80ea12277743af573f4130192bbc6a4ff185 /parse-options.c
parente57cb0158209ece040a4b873064504efd7d2ec0e (diff)
downloadgit-b7dd2d20fad1036ce7da0b635a8bb14cd4230f1a.zip
git-b7dd2d20fad1036ce7da0b635a8bb14cd4230f1a.tar.gz
git-b7dd2d20fad1036ce7da0b635a8bb14cd4230f1a.tar.bz2
for-each-ref: Do not lookup objects when they will not be used
This makes commands such as `git for-each-ref --format='%(refname)'`, which are used heavily by the bash_completion code, run about 6 times faster on an uncached repository (3 s intead of 18 s on my linux-2.6 repository with several remotes). Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.c')
0 files changed, 0 insertions, 0 deletions