git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 17, 2010, 16:21 UTC
Message-ID
<4BA1017E.1010404@drmicha.warpmail.net>
In-Reply-To
<1268838344-8581-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy venit, vidit, dixit 17.03.2010 16:05:
Show 13 quoted lines
> "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
Previous: Nguyễn Thái Ngọc DuyNext: Junio C Hamano
Message 2 of 4 in “branch: only print upstream relationship with -v -v”
  1. branch: only print upstream relationship with -v -vNguyễn Thái Ngọc Duy, Mar 17, 2010
  2. Michael J GruberMar 17, 2010
  3. Junio C HamanoMar 17, 2010
  4. Nguyen Thai Ngoc DuyMar 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.