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

Re: [PATCH/RFC] Extended SHA1 -- "rev^#" syntax to mean "all parents"

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 29, 2006, 16:59 UTC
Message-ID
<Pine.LNX.4.64.0604290954370.3701@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.63.0604291737390.25093@wbgn013.biozentrum.uni-wuerzburg.de>
On Sat, 29 Apr 2006, Johannes Schindelin wrote:
Show 5 quoted lines
> 
> > A short-hand "rev^#" is understood to be "all parents of the
> > named commit" with this patch.
> 
> Just my 2/100: Why not "rev^*"? I could remember that more easily.
Yeah, that (or ^@ - to match shell "$1" "$2" .. "$@") was my reaction too.

The "rev^#" thing should to my mind return the _number_ of parents, the same way "$#" does in shell. I actually pronounce that '#' character mentally as "number", but maybe that's just because I'm totally mentally damaged by shell programming, and everybody else probably calls it "hash" (and some people apparently call it "pound", for some really sick reason).

So "rev^#" literally reads as "revision parent number" to me. Useful? Maybe. Maybe not.

		Linus
Previous: Johannes Schindelin
Message 5 of 5 in “built-in diff.”
  1. built-in diff.Junio C Hamano, Apr 29, 2006
  2. built-in diff: assorted updates.Junio C Hamano, Apr 29, 2006
  3. Extended SHA1 -- "rev^#" syntax to mean "all parents"Junio C Hamano, Apr 29, 2006
  4. Johannes SchindelinApr 29, 2006
  5. Linus TorvaldsApr 29, 2006

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.