From: Andy Parkins Date: Fri, 26 Jan 2007 10:36:18 GMT Subject: Re: [PATCH 1/2] Teach git-describe to display distances from tags. Message-ID: <200701261036.26012.andyparkins@gmail.com> In-Reply-To: <7vmz4663xq.fsf@assigned-by-dhcp.cox.net> On Friday 2007 January 26 00:13, Junio C Hamano wrote: > Hmph. And an option --no-number to disable this is probably not > worth it, as it forces the existing scripts that wants the > tagname to be updated to pass that new option. If the users > need to update their scripts anyway, they can sed/expr the > number out just as easily as passing the new option. Actually, the more useful switch would be "--tag-only"; then x=$(git-describe HEAD | sed 's/-g*//') In scripts could become x=$(git-describe --tag-only HEAD) Then, the suffix can be anything we want, and can change in the future without affecting these scripts. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com