Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v3 3/3] Documentation: a note about stdout for git rev-parse --verify --quiet

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:32

David Aguilar [off-list ref] writes:
quoted hunk
Signed-off-by: David Aguilar <redacted>
---
This patch is new: we now mention that stdout contains the valid object name
when --quiet is used, which may not be clear when reading this paragraph in
isolation.

 Documentation/git-rev-parse.txt | 1 +
 1 file changed, 1 insertion(+)
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 0b84769..fa4a8c3 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -114,6 +114,7 @@ can be used.
 	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.
+	SHA-1s for valid object names are printed to stdout on success.
OK.  Thanks.
 
 --sq::
 	Usually the output is made one line per flag and
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help