git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH] GIT-VERSION-GEN: restrict tags used

From
Tay Ray Chuan <rctay89@gmail.com>
Date
May 12, 2010, 03:23 UTC
Message-ID
<AANLkTim8SRUEaNWyBF_iRQstu84r9eAaUd0a9KLj6OtR@mail.gmail.com>
In-Reply-To
<20100511230100.GB31163@progeny.tock>
On Wed, May 12, 2010 at 7:01 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 14 quoted lines
> Tay Ray Chuan wrote:
>> This is to avoid using private tags by the user in a clone of the git
>> code repository, which may break certain machinery (eg. Makefile).
>
> Not to mention gitk:
>
>  set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
>  if {[package vcompare $git_version "1.6.1"] >= 0} {
>
> This requires ‘git version’ output to have the form
>
>  introducing 1.2.3.otherstuff
>
> or there will be errors at startup time.
Thanks for the heads-up, I'll put that in the patch message.
>>   After this patch, perhaps we could advertise somewhere to git hackers
>>   that tags beginning with "v" should be avoided.
>
> Maybe v[0-9]* would make this problem harder to trip.
Oh, I didn't know character classes were allows. Sounds good.
-- 
Cheers,
Ray Chuan
Previous: Jonathan NiederNext: Tay Ray Chuan
Message 4 of 6 in “GIT-VERSION-GEN: restrict tags used”
  1. GIT-VERSION-GEN: restrict tags usedTay Ray Chuan, May 11, 2010
  2. Jonathan NiederMay 11, 2010
  3. Jonathan NiederMay 11, 2010
  4. Tay Ray ChuanMay 12, 2010
  5. GIT-VERSION-GEN: restrict tags usedTay Ray Chuan, May 12, 2010
  6. Junio C HamanoMay 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.