name-rev: update hash descriptions
The documentation for --annotate-stdin and --name-only refers to SHA-1, although name-rev handles object IDs according to the active hash algorithm. Update the descriptions to refer to object IDs instead. Signed-off-by: jyotish kumar <jyotishkumar725015@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>next
parent
e9019fcafe
commit
b2ab8fccc3
|
|
@ -43,7 +43,7 @@ OPTIONS
|
|||
List all commits reachable from all refs
|
||||
|
||||
--annotate-stdin::
|
||||
Transform stdin by substituting all the 40-character SHA-1
|
||||
Transform stdin by substituting all the full-length object ID
|
||||
hexes (say $hex) with "$hex ($rev_name)". When used with
|
||||
--name-only, substitute with "$rev_name", omitting $hex
|
||||
altogether. This option was called `--stdin` in older versions
|
||||
|
|
@ -72,7 +72,7 @@ while its tree object is 70d105cc79e63b81cfdcb08a15297c23e60b07ad
|
|||
-----------
|
||||
|
||||
--name-only::
|
||||
Instead of printing both the SHA-1 and the name, print only
|
||||
Instead of printing both the object ID and the name, print only
|
||||
the name. If given with --tags the usual tag prefix of
|
||||
"tags/" is also omitted from the name, matching the output
|
||||
of `git-describe` more closely.
|
||||
|
|
|
|||
Loading…
Reference in New Issue