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

Re: Update local tracking refs when pushing- no way to disable

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 6, 2007, 08:42 UTC
Message-ID
<20070706084241.GC16319@spearce.org>
In-Reply-To
<e5bfff550707060126t781587aaxbe2f6eca1c282985@mail.gmail.com>
Marco Costalba <mcostalba@gmail.com> wrote:
Show 12 quoted lines
> On 7/6/07, Daniel Barkalow <barkalow@iabervon.org> wrote:
> >
> >(AFAICT, the only additional stuff that -a shows with git branch is the
> >stuff that you're deleting; perhaps qgit should have an option to not show
> >remotes, or not show them by default or only show them if what they point
> >to isn't otherwise marked? Anyway, it shouldn't be necessary to avoid
> >having this information just so that it isn't shown in interfaces you
> >use.)
> >
> 
> Probably an option "show remote branches" from a popup context menu
> (right click) is the more natural and predictable solution.

Recently I was faced with handling a repository that has over 200 local refs/heads and 200+ refs/remotes that the user might be interested in working on. Yea, its fun to look at in gitk. It is not fun to run `git fetch` when on Cygwin.

Anyway, the git-gui `pu` branch now has new UI to handle these sorts of cases rather nicely. The revision selection mega-widget that I recently wrote lets the user select which "class" of ref (head, tracking branch, tag) they want and then filter them using a substring glob filter. The trick works very well to let the user weed the list of 400+ possible refs down to just a couple that they can pick from with the keyboard, or the mouse.

The UI will be in 0.8.0. Which I'm hoping to go into an rc status later this week.

Minor warning: currently the `pu` branch of git-gui probably requires git 1.5.3-rc0 or later. It doesn't test for it and just assumes your git is new enough. I do plan on fixing the couple of spots that might matter to be conditional and fallback gracefully if 1.5.3 isn't available. Just haven't done it yet. Those will be fixed before they merge to `master`.

-- 
Shawn.
Previous: Marco CostalbaNext: Johannes Schindelin
Message 6 of 12 in “Update local tracking refs when pushing- no way to disable”
  1. Dan McGeeJul 6, 2007
  2. Johannes SchindelinJul 6, 2007
  3. Junio C HamanoJul 6, 2007
  4. Daniel BarkalowJul 6, 2007
  5. Marco CostalbaJul 6, 2007
  6. Shawn O. PearceJul 6, 2007
  7. Johannes SchindelinJul 6, 2007
  8. Daniel BarkalowJul 6, 2007
  9. Johannes SchindelinJul 6, 2007
  10. Daniel BarkalowJul 6, 2007
  11. Johannes SchindelinJul 6, 2007
  12. Dan McGeeJul 6, 2007

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.