From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: Timur Tabi <timur@freescale.com>
Subject: [PATCH] config --get-all: it is an error not to see any value
Date: Mon, 19 Nov 2012 16:24:03 -0800 [thread overview]
Message-ID: <7v7gphunoc.fsf_-_@alter.siamese.dyndns.org> (raw)
In-Reply-To: <7vd2z9uobn.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Mon, 19 Nov 2012 16:10:04 -0800")
The wording "... is not exactly one." incorrectly hinted as if
having no value is not an error, but that was not what was
intended. Clarify what similarity it wants to mention by
elaborating the "Like get" part of the description.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
Documentation/git-config.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git i/Documentation/git-config.txt w/Documentation/git-config.txt
index eaea079..273239d 100644
--- i/Documentation/git-config.txt
+++ w/Documentation/git-config.txt
@@ -85,8 +85,9 @@ OPTIONS
found and error code 2 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`, shows the value(s) given to the key, and signals an
+ error if there is no such key. Unlike `--get`, does not
+ fail if there are multiple values defined for the key.
--get-regexp::
Like --get-all, but interprets the name as a regular expression and
prev parent reply other threads:[~2012-11-20 0:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 23:02 git config --git-all can return non-zero error code Timur Tabi
2012-11-20 0:10 ` Junio C Hamano
2012-11-20 0:24 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v7gphunoc.fsf_-_@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=timur@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox