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

Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Feb 10, 2009, 12:23 UTC
Message-ID
<20090210122341.GH1320@atjola.homenet>
In-Reply-To
<20090210115943.GA15387@coredump.intra.peff.net>
On 2009.02.10 06:59:43 -0500, Jeff King wrote:
Show 8 quoted lines
> On Tue, Feb 10, 2009 at 12:50:36PM +0100, Björn Steinbrink wrote:
> > Yeah, as I said in the other mail, having it as a default would make add
> > -m quite pointless.
> 
> Not necessarily. You might be interested in some other branch that isn't
> their HEAD. So yes, you would hopefully be using it much less because we
> would be guessing what you wanted to put there instead of making you
> type it. But it would still be useful as an override.

I guess you read that in the wrong context (or I replied in the wrong context). What I meant is that it would be bad if "git remote update" or "git fetch <remote>" or whatever would update <remote>/HEAD automatically, as that would kill what you have setup with -m.

Using -m as an override for the automatic guessing makes sense, sure. It's even what the docs say how it's supposed to work already (it just doesn't create <remote>/HEAD at all atm, unless -m is given).

Björn
Previous: Jeff KingNext: Jeff King
Message 15 of 16 in “builtin-branch: highlight current remote branches with an asterisk”
  1. builtin-branch: highlight current remote branches with an asteriskJay Soffian, Feb 9, 2009
  2. Johannes SchindelinFeb 9, 2009
  3. Mark BurtonFeb 10, 2009
  4. Jay SoffianFeb 10, 2009
  5. Mark BurtonFeb 10, 2009
  6. Junio C HamanoFeb 10, 2009
  7. Santi BéjarFeb 10, 2009
  8. Jay SoffianFeb 10, 2009
  9. Björn SteinbrinkFeb 10, 2009
  10. Santi BéjarFeb 10, 2009
  11. Björn SteinbrinkFeb 10, 2009
  12. Jeff KingFeb 10, 2009
  13. Björn SteinbrinkFeb 10, 2009
  14. Jeff KingFeb 10, 2009
  15. Björn SteinbrinkFeb 10, 2009
  16. Jeff KingFeb 10, 2009

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.