path: root/Documentation/git-rev-parse.txt
diff options
authorChristian Couder <>2008-04-26 11:57:23 (GMT)
committerJunio C Hamano <>2008-04-27 06:22:17 (GMT)
commitb1b359699a24a89f773cccdf35801bc6fc15ade8 (patch)
treef9205eca69ab884a83345cd9ac7eb2f3432198aa /Documentation/git-rev-parse.txt
parent36c79d2bf893b9957688a6c8c13cc0bf0589e596 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 6513c2e..110e7ba 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.
Usually the output is made one line per flag and
parameter. This option makes output a single line,