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

Re: [BUG?] "format-patch --range-diff=$commit HEAD^ HEAD" fails

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 20, 2024, 17:30 UTC
Message-ID
<xmqqcyqk3ps8.fsf@gitster.g>
In-Reply-To
<xmqqbk65jmqp.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
> Immediately after "git commit --amend" of a single commit,
> this fails:
>
>     $ git format-patch --range-diff=@{1} -v2 HEAD^ HEAD

Please scratch this one. I simply forgot that we have lost the

	git format-patch <his> <mine>

syntax long time ago during Git 1.4.0 timeframe [*]. I somehow was confused since we still have the corresponding

	rebase <since-onto> <mine>
syntax.
[Footnote]
 * I suspect this may not have been a conscious design decision but
   by accident during the rewrite of the command in C that I started
   at 3eefc189 (Tentative built-in format-patch., 2006-04-18) and
   whose final shape was documented by 2052d146 (Update
   documentation for git-format-patch, 2006-05-31).
Previous: Junio C Hamano
Message 2 of 2 in “[BUG?] "format-patch --range-diff=$commit HEAD^ HEAD" fails”
  1. Junio C HamanoApr 19, 2024
  2. Junio C HamanoApr 20, 2024

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.