Skip to content

Commit 871ed78

Browse files
committed
Merge branch 'rr/name-rev-stdin-doc' into maint
* rr/name-rev-stdin-doc: name-rev doc: rewrite --stdin paragraph
2 parents ba5831f + 3087b61 commit 871ed78

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
@@ -31,8 +31,10 @@ OPTIONS
3131
List all commits reachable from all refs
3232

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

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

0 commit comments

Comments
 (0)