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

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

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Mar 18, 2010, 00:06 UTC
Message-ID
<fcaeb9bf1003171706s31870438kc69606389495876d@mail.gmail.com>
In-Reply-To
<7vwrxavqig.fsf@alter.siamese.dyndns.org>
On 3/17/10, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
>
>  > "git branch -v" is unusable for me because it's too slow.
>
> > ...
>
> > This is on a repository with ~30 branches, some are hundreds of
>  > patches behind upstream.
>
>
> Perhaps you have an overeager branch.autosetupmerge configuration?
No. Never heard of it.
Show 5 quoted lines
>  I dunno.  I seem to have a lot more branches than you do (currently
>  56), but most of them are topics that, once they forked from a
>  particular commit, never merge other random commits, only because they
>  have new commits that are unrelated to the objective of the topic, so
>  most of my branches do not have "upstream" in that sense.

I did sysprof and it seems half the time was spent inside merge_bases_many(). Being a complete ignorant about merging stuff, I put "return NULL;" at the beginning of that function, "git branch -v" now goes down to 2 seconds. Don't know if that could tell anything.

-- 
Duy
Previous: Junio C Hamano
Message 4 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.