Skip to content

Commit

Permalink
Documentation/git-config: fix --get-all description
Browse files Browse the repository at this point in the history
--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 <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
John Keeping authored and Junio C Hamano committed Feb 28, 2016
1 parent 94c5b0e commit 24990b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Documentation/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ OPTIONS
found and the last value if multiple key values were found.

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

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

0 comments on commit 24990b2

Please sign in to comment.