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

Re: [PATCH 3/4] Teach git-describe to display distances from tags.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 28, 2007, 07:24 UTC
Message-ID
<20070128072449.GA9781@spearce.org>
In-Reply-To
<Pine.LNX.4.63.0701271348330.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 20 quoted lines
> On Sat, 27 Jan 2007, Junio C Hamano wrote:
> > "Shawn O. Pearce" <spearce@spearce.org> writes:
> > 
> > > The + format is much easier to read and understand than the - format 
> > > original proposed by Junio.
> > 
> > I tend to disagree (I do not claim + is _less_ easier to read, though).
> > 
> > They are of comparable readability, and I think plus breaks 
> > GIT-VERSION-GEN (the primary reason it replaces '-' to '.' is to work 
> > around RPM limitation IIRC, and I do not know what '+' does to RPM 
> > offhand).
> 
> Note that scripts using git-describe to name archives break also on 
> challenged file / operating systems. IIRC on DOS/FAT32 '+' has problems 
> with it.
> 
> > But I do not have a strong feeling either way.
> 
> Neither have I.

Me neither, actually. The + just felt more right, as its literally "that tag, plus n commits".

But if + is going to cause pain on operating systems that somehow decided disallowing bytes other than NUL was OK and the right thing to do, then maybe - is the safer choice here.

-- 
Shawn.
Previous: Johannes SchindelinNext: Shawn O. Pearce
Message 5 of 6 in “If abbrev is set to zero in git-describe, don't add the unique suffix”
  1. 2/4 If abbrev is set to zero in git-describe, don't add the unique suffixShawn O. Pearce, Jan 27, 2007
  2. 3/4 Teach git-describe to display distances from tags.Shawn O. Pearce, Jan 27, 2007
  3. Junio C HamanoJan 27, 2007
  4. Johannes SchindelinJan 27, 2007
  5. Shawn O. PearceJan 28, 2007
  6. 4/4 Compute accurate distances in git-describe before output.Shawn O. Pearce, Jan 27, 2007

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.