Skip to content

Commit 24990b2

Browse files
johnkeepinggitster
authored andcommitted
Documentation/git-config: fix --get-all description
--get does not fail if a key is multi-valued, it returns the last value as described in its documentation. Clarify the description of --get-all to avoid implying that --get does fail in this case. Signed-off-by: John Keeping <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 94c5b0e commit 24990b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Documentation/git-config.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ OPTIONS
8686
found and the last value if multiple key values were found.
8787

8888
--get-all::
89-
Like get, but does not fail if the number of values for the key
90-
is not exactly one.
89+
Like get, but returns all values for a multi-valued key.
9190

9291
--get-regexp::
9392
Like --get-all, but interprets the name as a regular expression and

0 commit comments

Comments
 (0)