* git-describe only works on full tags
@ 2008-03-17 0:41 Jan Engelhardt
2008-03-17 2:13 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2008-03-17 0:41 UTC (permalink / raw)
To: git
Hi,
For some reason, git-describe only prints a description relative to
the last tag that was a tag object (and not just a ref).
This is kinda a bug to me, what do others think?
$ git-rev-list --all
0d00ac11e0927e6d50d565a30344a00ce1f6b0e7
c5137b6f2f0c7b6715c9508bdaeb464da93d036a
5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d
$ git-tag v0.1 5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d
$ git-describe
fatal: cannot describe '0d00ac11e0927e6d50d565a30344a00ce1f6b0e7'
$ git-tag -m "0.2" v0.2 c5137b6f2f0c7b6715c9508bdaeb464da93d036a
$ git-describe
v0.2-1-g0d00ac1
$ git-tag v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7
$ git-describe
v0.2-1-g0d00ac1
$ git-tag -f -m "0.3" v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7
$ git-describe v0.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git-describe only works on full tags
2008-03-17 0:41 git-describe only works on full tags Jan Engelhardt
@ 2008-03-17 2:13 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-03-17 2:13 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: git
Jan Engelhardt <jengelh@computergmbh•de> writes:
> For some reason, git-describe only prints a description relative to
> the last tag that was a tag object (and not just a ref).
> This is kinda a bug to me, what do others think?
There is an option to tell git-describe to allow using non annotated
tags, but that is not a defult.
This is a very deliberate design decision. Annotated tags are meant for
public consumption, but lightweight tags are often used to locally mark
points that are interesting during this current development session
(e.g. "I am trying to improve by first breaking and then enhancing, and
this one was the last-known working one"), and it is mighty annoying if
such a tag is used in describe output.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-17 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 0:41 git-describe only works on full tags Jan Engelhardt
2008-03-17 2:13 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox