Browse Source
"git name-rev" is supposed to convert given object names into strings that name the same objects based on refs, that can be fed to "git rev-parse" to get the same object names back, so the output for the commit object v1.8.3^0 (i.e. the commit tagged as v1.8.3) $ git rev-parse v1.8.3 v1.8.3^0 | git name-rev --stdinmaint8af06057d0
edca415256
(tags/v1.8.3^0) has to have "^0" at the end, as "edca41" is a commit, not the tag that references it. But we do not get anything for the tag object (8af0605
) itself. This is because the command however did not bother to see if the object is at the tip of some ref, and failed to convert a tag object. Teach it to show this instead: $ git rev-parse v1.8.3 v1.8.3^0 | git name-rev --stdin8af06057d0
(tags/v1.8.3)edca415256
(tags/v1.8.3^0) Signed-off-by: Junio C Hamano <gitster@pobox.com>

1 changed files with 58 additions and 1 deletions
Loading…
Reference in new issue