Skip to content

Commit

Permalink
name-rev doc: rewrite --stdin paragraph
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramkumar Ramachandra authored and Junio C Hamano committed Jul 7, 2013
1 parent 62e91ef commit 3087b61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Documentation/git-name-rev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3087b61

Please sign in to comment.