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

Re: [PATCH 0/3] Support config-based names

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 12, 2007, 05:28 UTC
Message-ID
<7vbqfln3mf.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<Pine.LNX.4.64.0706112244210.5848@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> It can be useful to refer to commits in remotes based on their configured 
> relationship to local branches. For example, "git log HEAD^[push]..HEAD" 
> would, when pushing is set up, show what hasn't been pushed yet.

It's not like we will be adding 'push' objects and 'merge' objects, so I think HEAD^{push} (curly brace, not bracket) is good enough.

We need to see how useful this would be in practice; we would not want to add new syntax without a set of convincing use cases. At this point, it still feels as if it is a feature that was implemented only because it could, not because there was a real need.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 4 of 6 in “Support config-based names”
  1. 0/3 Support config-based namesDaniel Barkalow, Jun 12, 2007
  2. Shawn O. PearceJun 12, 2007
  3. Daniel BarkalowJun 12, 2007
  4. Junio C HamanoJun 12, 2007
  5. Daniel BarkalowJun 12, 2007
  6. Junio C HamanoJun 12, 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.