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

Re: diff.ignoreSubmoudles config setting broken?

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Mar 9, 2017, 16:15 UTC
Message-ID
<CAHGBnuNv--R3FMpRWsvhFJU5_R2Rji=nCjqQsuXrK0UU30eByw@mail.gmail.com>
In-Reply-To
<xmqq8tof32x9.fsf@gitster.mtv.corp.google.com>
On Wed, Mar 8, 2017 at 9:54 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Between these two:
>
>         git -c diff.ignoresubmodules=all diff
>         git diff --ignore-submodules=all
>
> one difference is that the latter disables reading extra config from
> .gitmodules (!) while the former makes the command honor it.
>
> This comes from aee9c7d6 ("Submodules: Add the new "ignore" config
> option for diff and status", 2010-08-06), which is ancient and
> predates even v2.0, so if you see problems with v2.12 or v2.11 but
> not with older ones, that would rule out this theory.
Thanks for reminding me of possible settings .gitmodules. Indeed I have
[submodule "scanners/scancode-toolkit"]
        path = scanners/scancode-toolkit
        url = https://github.com/sschuberth/scancode-toolkit.git
        ignore = untracked

in .gitmodules, which explains why globally setting "diff.ignoreSubmodules" to "all" had no effect.

-- 
Sebastian Schuberth
Previous: Stefan BellerNext: Jacob Keller
Message 11 of 12 in “diff.ignoreSubmoudles config setting broken?”
  1. Sebastian SchuberthMar 8, 2017
  2. Jeff KingMar 8, 2017
  3. Sebastian SchuberthMar 8, 2017
  4. Jeff KingMar 8, 2017
  5. Sebastian SchuberthMar 8, 2017
  6. Stefan BellerMar 8, 2017
  7. Junio C HamanoMar 8, 2017
  8. Stefan BellerMar 8, 2017
  9. Junio C HamanoMar 8, 2017
  10. Stefan BellerMar 9, 2017
  11. Sebastian SchuberthMar 9, 2017
  12. Jacob KellerMar 8, 2017

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.