config: add '--show-origin' option to print the origin of a config value
authorLars Schneider <redacted>
Fri, 19 Feb 2016 09:16:02 +0000 (10:16 +0100)
committerJunio C Hamano <redacted>
Mon, 22 Feb 2016 17:43:48 +0000 (09:43 -0800)
commit70bd879ab66aeee809306908e3551d50cdf06802
treeeb2cc3757ef3d250f10724eba9743933a97cbcd3
parent473166b99078a2724b4fcda11a6a5327b9af60da
config: add '--show-origin' option to print the origin of a config value

If config values are queried using 'git config' (e.g. via --get,
--get-all, --get-regexp, or --list flag) then it is sometimes hard to
find the configuration file where the values were defined.

Teach 'git config' the '--show-origin' option to print the source
configuration file for every printed value.

Based-on-patch-by: Jeff King <redacted>
Signed-off-by: Lars Schneider <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-config.txt
builtin/config.c
t/t1300-repo-config.sh
git clone https://git.99rst.org/PROJECT