author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 26 Dec 2008 22:02:01 +0000 (14:02 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 27 Dec 2008 00:37:53 +0000 (16:37 -0800) | ||
commit | 81dc223deba84341be9681d7a1a4a183e02e41d6 | |
tree | b03ad00ce9253ccee3a2f6b58c495264a1321afb | tree | snapshot |
parent | 4ed19a3c178d22fbd424af78b42b65533a8d1ebb | commit | diff |
describe: Avoid unnecessary warning when using --all
In 212945d4 ("Teach git-describe to verify annotated tag names
before output") git-describe learned how to output a warning if
an annotated tag object was matched but its internal name doesn't
match the local ref name.
However, "git describe --all" causes the local ref name to be
prefixed with "tags/", so we need to skip over this prefix before
comparing the local ref name with the name recorded inside of the
tag object.
Patch-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In 212945d4 ("Teach git-describe to verify annotated tag names
before output") git-describe learned how to output a warning if
an annotated tag object was matched but its internal name doesn't
match the local ref name.
However, "git describe --all" causes the local ref name to be
prefixed with "tags/", so we need to skip over this prefix before
comparing the local ref name with the name recorded inside of the
tag object.
Patch-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-describe.c | diff | blob | history | |
t/t6120-describe.sh | diff | blob | history |