{"thread":{"id":"12718","subject":"git-describe only works on full tags","startedAt":"2008-03-17T00:41:03Z","lastAt":"2008-03-17T02:13:09Z","messageCount":2,"participants":["Jan Engelhardt","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"72262","messageId":"Pine.LNX.4.64.0803170137300.14822@fbirervta.pbzchgretzou.qr","threadId":"12718","inReplyTo":null,"subject":"git-describe only works on full tags","fromName":"Jan Engelhardt","fromEmail":"jengelh@computergmbh.de","sentAt":"2008-03-17T00:41:03Z","receivedAt":"2008-03-17T00:41:03Z","isPatch":false,"sender":{"key":"jengelh@computergmbh.de","avatar":null},"body":"Hi,\n\n\nFor some reason, git-describe only prints a description relative to \nthe last tag that was a tag object (and not just a ref).\nThis is kinda a bug to me, what do others think?\n\n$ git-rev-list --all\n0d00ac11e0927e6d50d565a30344a00ce1f6b0e7\nc5137b6f2f0c7b6715c9508bdaeb464da93d036a\n5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d\n$ git-tag v0.1 5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d\n$ git-describe\nfatal: cannot describe '0d00ac11e0927e6d50d565a30344a00ce1f6b0e7'\n$ git-tag -m \"0.2\" v0.2 c5137b6f2f0c7b6715c9508bdaeb464da93d036a\n$ git-describe \nv0.2-1-g0d00ac1\n$ git-tag v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7\n$ git-describe\nv0.2-1-g0d00ac1\n$ git-tag -f -m \"0.3\" v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7\n$ git-describe v0.3\n"},{"id":"72265","messageId":"7vhcf6cd3e.fsf@gitster.siamese.dyndns.org","threadId":"12718","inReplyTo":"Pine.LNX.4.64.0803170137300.14822@fbirervta.pbzchgretzou.qr","subject":"Re: git-describe only works on full tags","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-03-17T02:13:09Z","receivedAt":"2008-03-17T02:13:09Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jan Engelhardt <jengelh@computergmbh.de> writes:\n\n> For some reason, git-describe only prints a description relative to \n> the last tag that was a tag object (and not just a ref).\n> This is kinda a bug to me, what do others think?\n\nThere is an option to tell git-describe to allow using non annotated\ntags, but that is not a defult.\n\nThis is a very deliberate design decision.  Annotated tags are meant for\npublic consumption, but lightweight tags are often used to locally mark\npoints that are interesting during this current development session\n(e.g. \"I am trying to improve by first breaking and then enhancing, and\nthis one was the last-known working one\"), and it is mighty annoying if\nsuch a tag is used in describe output.\n"}]}