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

Re: Suggestion: drop 'g' in git-describe suffix

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 2, 2006, 14:07 UTC
Message-ID
<eicu37$qui$1@sea.gmane.org>
In-Reply-To
<4549D519.4080104@xs4all.nl>
Han-Wen Nienhuys wrote:
Show 19 quoted lines
> Santi Béjar escreveu:
>> One problem I see with this scheme (either 'g', 'git' of '+') is that
>> it does not provide an increasing version number, even for
>> fast-forwarding commits. Then it is not useful as a package version
>> number (deb or rpm). I've already seen deb packages with
>> version+git20061010. One possibility could be to add the number of
>> commits between the tag and the commit as:
>> 
>> v1.4.3.3-git12g1e1f76e
>> 
>> to provide a weak ordering for fast-forwarding commits. What do you thing?
> 
> Is that number well defined if you merge branches in between?
> 
> I'd prefer
> 
>    v1.4.3.3+git-12-1e1f76e
> 
> or similar. Pasting together words without separator is bad for readability.
Or even IMVHO better:
    v1.4.3.3+12--1e1f76e

or something like that. v1.4.3.3+12 part meaning that v1.4.3.3 is 12 ancestor in direct shortest direct line, or that v1.4.3.3+12 is 12 generations away from v1.4.3.3.

Of course that is _costly_ to confitm that, and v1.4.3.3+12 might mean more than one revision in presence of branching points, especially that there is no equivalent of "first parent" to distinguish like in case of v1.4.3.3~12

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Santi BéjarNext: Nicolas Vilz 'niv'
Message 13 of 19 in “Suggestion: drop 'g' in git-describe suffix”
  1. Han-Wen NienhuysNov 2, 2006
  2. Andy WhitcroftNov 2, 2006
  3. Han-Wen NienhuysNov 2, 2006
  4. Andy WhitcroftNov 2, 2006
  5. Han-Wen NienhuysNov 2, 2006
  6. Johannes SchindelinNov 2, 2006
  7. Santi BéjarNov 2, 2006
  8. Andy WhitcroftNov 2, 2006
  9. Santi BéjarNov 2, 2006
  10. Andy WhitcroftNov 2, 2006
  11. Han-Wen NienhuysNov 2, 2006
  12. Santi BéjarNov 2, 2006
  13. Jakub NarebskiNov 2, 2006
  14. Nicolas Vilz 'niv'Nov 2, 2006
  15. Johannes SchindelinNov 2, 2006
  16. Nicolas Vilz 'niv'Nov 2, 2006
  17. Andy WhitcroftNov 2, 2006
  18. Petr BaudisNov 2, 2006
  19. Carl WorthNov 2, 2006

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.