aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-config.txt
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-02-28 11:54:35 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-28 12:01:45 -0800
commit27b30be686e497e6ab84dc0b25623df7aba1ba2c (patch)
tree048eedeb7dc98fa1ade92fb6d1fee205de64a6ef /Documentation/git-config.txt
parent326e5bc91eecf73234ead29636207bc516573e79 (diff)
downloadgit-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 'Documentation/git-config.txt')
-rw-r--r--Documentation/git-config.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 2608ca74ac..b96149495a 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -102,7 +102,7 @@ OPTIONS
given URL is returned (if no such key exists, the value for
section.key is used as a fallback). When given just the
section as name, do so for all the keys in the section and
- list them.
+ list them. Returns error code 1 if no value is found.
--global::
For writing options: write to global `~/.gitconfig` file