diff: stop allowing diff to have submodules configured in .git/config
authorBrandon Williams <bmwill@google.com>
Thu, 3 Aug 2017 18:19:55 +0000 (11:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Aug 2017 20:11:01 +0000 (13:11 -0700)
commit078b75e99be00155eac3ec2d4eaa0ae0941ff54d
treee01e723d92f256309940c15c46fb15ec3fb03b3c
parent2cc67fe54a029842e71e49a676bf010e988d4063
diff: stop allowing diff to have submodules configured in .git/config

Traditionally a submodule is comprised of a gitlink as well as a
corresponding entry in the .gitmodules file.  Diff doesn't follow this
paradigm as its config callback routine falls back to populating the
submodule-config if a config entry starts with 'submodule.'.

Remove this behavior in order to be consistent with how the
submodule-config is populated, via calling 'gitmodules_config()' or
'repo_read_gitmodules()'.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4027-diff-submodule.sh