summaryrefslogtreecommitdiff
path: root/Documentation/git-name-rev.txt
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-07-07 12:43:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-07 18:17:50 (GMT)
commit3087b615abac487a5f52d31c10bc48f2c769654b (patch)
treef4235f1d6d2eea8ec4071cc55077c1c0ff762bea /Documentation/git-name-rev.txt
parent62e91efafd2030b7dc33ac6450b4e9a316e6ecc6 (diff)
downloadgit-3087b615abac487a5f52d31c10bc48f2c769654b.zip
git-3087b615abac487a5f52d31c10bc48f2c769654b.tar.gz
git-3087b615abac487a5f52d31c10bc48f2c769654b.tar.bz2
name-rev doc: rewrite --stdin paragraph
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-name-rev.txt')
-rw-r--r--Documentation/git-name-rev.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-name-rev.txt b/Documentation/git-name-rev.txt
index ad1d146..11da704 100644
--- a/Documentation/git-name-rev.txt
+++ b/Documentation/git-name-rev.txt
@@ -31,8 +31,10 @@ OPTIONS
List all commits reachable from all refs
--stdin::
- Read from stdin, append "(<rev_name>)" to all sha1's of nameable
- commits, and pass to stdout
+ Transform stdin by substituting all the 40-character SHA-1
+ hexes (say $hex) with "$hex ($rev_name)". When used with
+ --name-only, substitute with "$rev_name", omitting $hex
+ altogether. Intended for the scripter's use.
--name-only::
Instead of printing both the SHA-1 and the name, print only