git branch: avoid unnecessary object lookups
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Jul 2009 19:05:34 +0000 (12:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jul 2009 04:56:04 +0000 (21:56 -0700)
commit191d1ac435c01e2a7acfb93fb9da8378da90214c
treefe728f812521a02819a1d6db20bac56aa7ebc94f
parente6e4a47ba12bd19ed956251f191b1ea9915f61f8
git branch: avoid unnecessary object lookups

They can be expensive in the cold-cache case, so don't bother looking up
the commits for all branches unless we really need them for some reason.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c