diff options
author | John Keeping <john@keeping.me.uk> | 2016-02-28 11:54:35 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-28 12:01:45 -0800 |
commit | 27b30be686e497e6ab84dc0b25623df7aba1ba2c (patch) | |
tree | 048eedeb7dc98fa1ade92fb6d1fee205de64a6ef /sha1-lookup.h | |
parent | 326e5bc91eecf73234ead29636207bc516573e79 (diff) | |
download | git-27b30be686e497e6ab84dc0b25623df7aba1ba2c.tar.gz |
config: fail if --get-urlmatch finds no value
The --get, --get-all and --get-regexp options to git-config exit with
status 1 if the key is not found but --get-urlmatch succeeds in this
case.
Change --get-urlmatch to behave in the same way as the other --get*
options so that all four are consistent. --get-color is a special case
because it accepts a default value to return and so should not return an
error if the key is not found.
Also clarify this behaviour in the documentation.
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-lookup.h')
0 files changed, 0 insertions, 0 deletions