author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 20 Feb 2007 00:08:48 +0000 (01:08 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Feb 2007 03:03:59 +0000 (19:03 -0800) | ||
commit | 59d3f541cfe48345d708330bc19d8a880c80c595 | |
tree | 9d01c0f95a1321204c2029b9cd6c011cccfba74d | tree | snapshot |
parent | 437b1b20df4b356c9342dac8d38849f24ef44f27 | commit | diff |
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>
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 | diff | blob | history |