Skip to content

Commit 62e91ef

Browse files
johnkeepinggitster
authored andcommitted
git-config: update doc for --get with multiple values
Since commit 00b347d (git-config: do not complain about duplicate entries, 2012-10-23), "git config --get" does not exit with an error if there are multiple values for the specified key but instead returns the last value. Update the documentation to reflect this. Signed-off-by: John Keeping <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 04a74b6 commit 62e91ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ OPTIONS
8282
--get::
8383
Get the value for a given key (optionally filtered by a regex
8484
matching the value). Returns error code 1 if the key was not
85-
found and error code 2 if multiple key values were found.
85+
found and the last value if multiple key values were found.
8686

8787
--get-all::
8888
Like get, but does not fail if the number of values for the key

0 commit comments

Comments
 (0)