[PATCH v5 0/3] config: add '--sources' option to print the source of a config value
- From
larsxschneider@gmail.com <larsxschneider@gmail.com>
- Date
- Feb 17, 2016, 08:57 UTC
- Message-ID
- <1455699468-45443-1-git-send-email-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>
diff to v4: * improve wording of "exit code" cleanup commit message (Thanks Peff) * remove t1300 "--show-origin" test teardown (Thanks Peff) * fix no parameter function prototype (Thanks Ramsay) * use doublequotes instead of tabs to test quoted paths (Thanks Junio)
I though a while about Ramsay's suggestion to restore the old error messages for config reads via stdin. Since reading the config via stdin is not that common I don't think the increased complexity is worth the effort. Unless Ramsay or someone else feels strongly about it, I would like to proceed and keep the new error messages
Thanks for the review, Lars
Lars Schneider (3):
t: do not hide Git's exit code in tests using 'nul_to_q'
config: add 'type' to config_source struct that identifies config type
config: add '--show-origin' option to print the origin of a config
valueDocumentation/git-config.txt | 15 ++-- builtin/config.c | 33 +++++++++ cache.h | 6 +- config.c | 36 +++++++--- submodule-config.c | 4 +- t/t1300-repo-config.sh | 161 ++++++++++++++++++++++++++++++++++++++++++- t/t1308-config-set.sh | 4 +- t/t7008-grep-binary.sh | 3 +- 8 files changed, 236 insertions(+), 26 deletions(-)
-- 2.5.1