diff options
author | Jeff King <peff@peff.net> | 2011-12-10 05:30:06 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-11 23:16:24 -0800 |
commit | a96250c6fb612f5f2197df5e0354599f18530c7c (patch) | |
tree | 34a038ebe12c4f4cfc6a4c625f72db42f43d47a1 /t/t4123-apply-shrink.sh | |
parent | Update 1.7.8 draft release notes in preparation for rc4 (diff) | |
download | tgif-a96250c6fb612f5f2197df5e0354599f18530c7c.tar.xz |
test-lib: add test_config_global variant
The point of test_config is to simultaneously set a config
variable and register its cleanup handler, like:
test_config core.foo bar
However, it stupidly assumes that $1 contained the name of
the variable, which means it won't work for:
test_config --global core.foo bar
We could try to parse the command-line ourselves and figure
out which parts need to be fed to test_unconfig. But since
this is likely the most common variant, it's much simpler
and less error-prone to simply add a new function.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4123-apply-shrink.sh')
0 files changed, 0 insertions, 0 deletions