name-rev: avoid "^0" when unneeded
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 20 Feb 2007 00:08:48 +0000 (01:08 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Feb 2007 03:03:59 +0000 (19:03 -0800)
commit59d3f541cfe48345d708330bc19d8a880c80c595
tree9d01c0f95a1321204c2029b9cd6c011cccfba74d
parent437b1b20df4b356c9342dac8d38849f24ef44f27
name-rev: avoid "^0" when unneeded

When naming by a tag, we used to add "^0" even if this was not really
necessary. For example, `git name-rev de6f0def` now outputs

de6f0def tags/v1.5.0.1~9

instead of

de6f0def tags/v1.5.0.1^0~9

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-name-rev.c