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

Re: Complete http-pull; where should it go?

From
Linus Torvalds <torvalds@osdl.org>
Date
May 2, 2005, 01:50 UTC
Message-ID
<Pine.LNX.4.58.0505011840590.2162@ppc970.osdl.org>
In-Reply-To
<7vsm16qyia.fsf@assigned-by-dhcp.cox.net>
On Sun, 1 May 2005, Junio C Hamano wrote:
Show 5 quoted lines
>
> Shameless plug but could you take a look at how my JIT does it,
> at <http://members.cox.net/junkio/JITNotes.txt>, especially
> scroll down to near the bottom "Syntax to naming a snapshot or a
> commit" section?

Hmm.. I actually implemented it, because it's simple to implement, but now that I've tried using it, I just find it to be too much like line noise to do

	git-diff-tree -p 0-HEAD HEAD

for "parent to current". The notation "-HEAD" also works, but since that looks like a command line flag, it's usually not useful, except when combined with other stuff, ie "0---HEAD" is "three parents up".

> I still think this kind of thing belongs to Porcelain not
> Plumbing, though.

I don't entirely disagree, and I suspect that Porcelain ends up using the pure hex numbers which are always unambiguous.

That said, I end up still using the raw plumbing, so it's actually nice to have some simple shorthand. I just don't know if the parent thing ends up being all that useful.

Anyway, it's there. I don't love the parent syntax, but on the other hand, I don't know how often I'd even end up using it (while the tag and HEAD names are _very_ useful), so maybe it just doesn't matter.

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 14 in “Complete http-pull; where should it go?”
  1. Daniel BarkalowMay 1, 2005
  2. Linus TorvaldsMay 1, 2005
  3. Daniel BarkalowMay 1, 2005
  4. Linus TorvaldsMay 1, 2005
  5. Daniel BarkalowMay 1, 2005
  6. Linus TorvaldsMay 1, 2005
  7. Daniel BarkalowMay 1, 2005
  8. Linus TorvaldsMay 1, 2005
  9. Junio C HamanoMay 2, 2005
  10. Linus TorvaldsMay 2, 2005
  11. Junio C HamanoMay 2, 2005
  12. Linus TorvaldsMay 2, 2005
  13. Daniel BarkalowMay 2, 2005
  14. Junio C HamanoMay 1, 2005

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.