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 7, 2022, 01:26 UTC
Message-ID
<xmqq8rq91cxv.fsf@gitster.g>
In-Reply-To
<ed907ed2-ee9c-789f-0f25-0a1f5b58714f@gmail.com>
Philippe Blain <levraiphilippeblain@gmail.com> writes:
Show 16 quoted lines
> Just to be clear: the "out of the box" behaviour (i.e. nothing in the config)
> is correct, i.e. submodule changes are detected and shown by 'git range-diff'.
>
> It's only if someone has 'diff.submodule={log,diff}' in their
> config that submodule changes are quietly ignored (log) or might
> crash 'git range-diff' (diff). So I do not think of any user or
> workflow that benefit from the current behaviour, no. If you have
> diff.submodule={log,diff} set in your config, it's most probably
> because you work in projects that involve submodules and you do
> care about submodule changes. So having these changes "hidden" by
> range-diff (or having range-diff crash) just because the output
> format of 'git -c diff.submodule={log,diff} log' does not use a
> 'diff --git' header for submodules is really not expected. So I do
> not think we need to make that configurable. I think hardcoding
> '--submodule=short' is an easy fix and a good first step in making
> 'git range-diff' more useful for submodule users.

OK. As "diff.submodule=none" does not exist, hardcoding "short" would not hurt anybody, I agree.

Thanks.
Previous: Philippe BlainNext: Philippe Blain
Message 7 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.