From: Anders Kaseorg Date: Wed, 27 May 2009 19:23:12 +0000 (-0400) Subject: for-each-ref: Do not lookup objects when they will not be used X-Git-Tag: v1.6.3.3~1^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b7dd2d20fad1036ce7da0b635a8bb14cd4230f1a?hp=b7dd2d20fad1036ce7da0b635a8bb14cd4230f1a 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 Signed-off-by: Junio C Hamano ---