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 = untrackedin .gitmodules, which explains why globally setting "diff.ignoreSubmodules" to "all" had no effect.
-- Sebastian Schuberth