Browse Source

Merge branch 'rr/name-rev-stdin-doc'

* rr/name-rev-stdin-doc:
  name-rev doc: rewrite --stdin paragraph
maint
Junio C Hamano 12 years ago
parent
commit
624ec4f99d
  1. 6
      Documentation/git-name-rev.txt

6
Documentation/git-name-rev.txt

@ -32,8 +32,10 @@ OPTIONS
List all commits reachable from all refs List all commits reachable from all refs


--stdin:: --stdin::
Read from stdin, append "(<rev_name>)" to all sha1's of nameable Transform stdin by substituting all the 40-character SHA-1
commits, and pass to stdout 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:: --name-only::
Instead of printing both the SHA-1 and the name, print only Instead of printing both the SHA-1 and the name, print only

Loading…
Cancel
Save