aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-rev-parse.txt
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2008-04-26 13:57:23 +0200
committerJunio C Hamano <gitster@pobox.com>2008-04-26 23:22:17 -0700
commitb1b359699a24a89f773cccdf35801bc6fc15ade8 (patch)
treef9205eca69ab884a83345cd9ac7eb2f3432198aa /Documentation/git-rev-parse.txt
parent36c79d2bf893b9957688a6c8c13cc0bf0589e596 (diff)
downloadgit-b1b359699a24a89f773cccdf35801bc6fc15ade8.tar.gz
git-b1b359699a24a89f773cccdf35801bc6fc15ade8.tar.xz
rev-parse: teach "--verify" to be quiet when using "-q" or "--quiet"
Currently "git rev-parse --verify <something>" is often used with its error output redirected to /dev/null. This patch makes it easier to do that. The -q|--quiet option is designed to work the same way as it does for "git symbolic-ref". Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
-rw-r--r--Documentation/git-rev-parse.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 6513c2efe..110e7ba71 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -52,6 +52,11 @@ OPTIONS
The parameter given must be usable as a single, valid
object name. Otherwise barf and abort.
+-q, --quiet::
+ Only meaningful in `--verify` mode. Do not output an error
+ message if the first argument is not a valid object name;
+ instead exit with non-zero status silently.
+
--sq::
Usually the output is made one line per flag and
parameter. This option makes output a single line,