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

Re: git format-patch --range-diff bug?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 12, 2020, 18:59 UTC
Message-ID
<xmqqblg2jt95.fsf@gitster.c.googlers.com>
In-Reply-To
<CAPig+cT1zDT1iqRqO-4U8Rwq7p=MFm5Bkn990AVbxMHqp=knmg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> I haven't fully thought it through yet, but at this point, the best
> "fix" likely would be for `git format-patch --range-diff` to error out
> when it sees a 3-dot range. (Unless there is some other intuitive
> interpretation of a 3-dot range which escapes me.)

And possibly rename the option. Giving "--range-diff=<prev>" is not an instruction to run "git range-diff <prev>", so it is clear that the option is misnamed.

It probably should have been "--[no-]range-diff" boolean that controls if we add the range-diff from the previous, whose default may be affected by the user of the "-v$n" option, plus another option that gives where to find the "previous series", whose presence probably trigger "--range-diff" implicitly, or something like that.

And the option whose value we are having problem with is exactly that "--previous-series=<prev>" option.

Previous: Eric SunshineNext: Eric Sunshine
Message 4 of 5 in “git format-patch --range-diff bug?”
  1. SZEDER GáborNov 12, 2020
  2. Junio C HamanoNov 12, 2020
  3. Eric SunshineNov 12, 2020
  4. Junio C HamanoNov 12, 2020
  5. Eric SunshineNov 12, 2020

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.