]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/config.c
config: add '--show-origin' option to print the origin of a config value
authorLars Schneider <larsxschneider@gmail.com>
Fri, 19 Feb 2016 09:16:02 +0000 (10:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
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 <peff@peff.net>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.txt
builtin/config.c
t/t1300-repo-config.sh