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

Re: [PATCH] fmt-patch: understand old <his> notation

From
Linus Torvalds <torvalds@osdl.org>
Date
May 6, 2006, 22:30 UTC
Message-ID
<Pine.LNX.4.64.0605061527030.16343@g5.osdl.org>
In-Reply-To
<7viroirfur.fsf@assigned-by-dhcp.cox.net>
On Sat, 6 May 2006, Junio C Hamano wrote:
Show 6 quoted lines
> 
> While this would be easier on _my_ fingers as well, I have a
> suspicion that it might make more sense to make this "single
> ref" case to mean "HEAD~5^..HEAD~5" (if we _were_ designing a
> new command that is called format-patch today, that would be
> more natural).

Careful, that "X^..X" thing does entirely the wrong thing for merges. Not what you want at all, I think.

> But probably it is too late to break it by now.

Maybe not. I've actually cursed the fact that I made "git diff X" mean "diff from X to current working tree", because it almost never makes any sense at all when X is anything but "HEAD".

I probably _should_ have made "git diff X" mean basically "git show X", and not what it means now.

Oh, well.
			Linus
Previous: Junio C HamanoNext: Olivier Galibert
Message 5 of 7 in “fmt-patch: understand old <his> notation”
  1. fmt-patch: understand old <his> notationJohannes Schindelin, May 6, 2006
  2. Junio C HamanoMay 6, 2006
  3. Johannes SchindelinMay 6, 2006
  4. Junio C HamanoMay 7, 2006
  5. Linus TorvaldsMay 6, 2006
  6. Olivier GalibertMay 6, 2006
  7. Junio C HamanoMay 7, 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.