Skip to content

Commit 624ec4f

Browse files
committed
Merge branch 'rr/name-rev-stdin-doc'
* rr/name-rev-stdin-doc: name-rev doc: rewrite --stdin paragraph
2 parents 6492dea + 3087b61 commit 624ec4f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/git-name-rev.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ OPTIONS
3232
List all commits reachable from all refs
3333

3434
--stdin::
35-
Read from stdin, append "(<rev_name>)" to all sha1's of nameable
36-
commits, and pass to stdout
35+
Transform stdin by substituting all the 40-character SHA-1
36+
hexes (say $hex) with "$hex ($rev_name)". When used with
37+
--name-only, substitute with "$rev_name", omitting $hex
38+
altogether. Intended for the scripter's use.
3739

3840
--name-only::
3941
Instead of printing both the SHA-1 and the name, print only

0 commit comments

Comments
 (0)