Subject: Re: [PATCH] branch: only print upstream relationship with -v -v

From: Michael J Gruber <[email-masked]>
Date: Wed, 17 Mar 2010 17:21:18 +0100

Nguyễn Thái Ngọc Duy venit, vidit, dixit 17.03.2010 16:05:
> "git branch -v" is unusable for me because it's too slow. After this
> patch:
> 
> pclouds@do ~/w/git $ time ./git branch -v > /dev/null
> real    0m0.016s
> user    0m0.011s
> sys     0m0.004s
> 
> pclouds@do ~/w/git $ time ./git branch -v -v > /dev/null
> real    0m8.960s
> user    0m8.854s
> sys     0m0.029s
> 

Well, but also, after your patch the old output format of "git branch
-v" is not available any more at all! I mean, what is wrong with

git log --oneline --no-walk --branches --decorate

or

git rev-list --oneline --no-walk --branches

depending on what it is that you're really after? (Not to mention
for-each-ref.)

Michael