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

Re: [PATCH] range-diff: show submodule changes irrespective of diff.submodule

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 2, 2022, 17:36 UTC
Message-ID
<xmqqwndznf0z.fsf@gitster.g>
In-Reply-To
<nycvar.QRO.7.76.6.2206021724240.349@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 10 quoted lines
>> Force the submodule diff format to its default ("short") when invoking
>> 'git log' to generate the patches for each range, such that submodule
>> changes are always shown.
>
> Full disclosure: I do not see much value in range-diffs in the presence of
> submodules. Nothing in the design of range-diffs is prepared for
> submodules.
>
> But since `--submodules=short` does not change anything when running
> `range-diff` in repositories without submodules, I don't mind this change.

IOW, "I wrote it for the purpose of doing X, I do not care those who have been using it for doing Y, I am OK with changing behaviour on them".

Philippe, do you have a good guess on other users and workflows that may benefit from the current behaviour? I suspect in the longer term this might have to become configurable, and I am having a hard time judging if (1) a temporary regression (to them) is acceptable or (2) the new feature to also show submodule changes is not urgent enough that it may be better to make it configurable from day one, instead of using a different hardcoded and only setting like this patch does.

Show 5 quoted lines
> This test case is very clear and concise, even without my suggested
> changes. Therefore, if you want to keep the patch as-is, I am fine with
> that, too.
>
> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Thanks for a review.
Will queue.
Previous: Johannes SchindelinNext: Philippe Blain
Message 5 of 9 in “range-diff: show submodule changes irrespective of diff.submodule”
  1. range-diff: show submodule changes irrespective of diff.submodulePhilippe Blain via GitGitGadget, May 30, 2022
  2. Ævar Arnfjörð BjarmasonMay 30, 2022
  3. Philippe BlainMay 31, 2022
  4. Johannes SchindelinJun 2, 2022
  5. Junio C HamanoJun 2, 2022
  6. Philippe BlainJun 6, 2022
  7. Junio C HamanoJun 7, 2022
  8. Philippe BlainJun 6, 2022
  9. range-diff: show submodule changes irrespective of diff.submodulePhilippe Blain via GitGitGadget, Jun 6, 2022

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.