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

Re: [PATCH] GIT-VERSION-GEN: Use standard versioning suffix

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 5, 2025, 15:19 UTC
Message-ID
<xmqqh5xh3p23.fsf@gitster.g>
In-Reply-To
<aLrVQLZpAf-WqFvY@fruit.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 17 quoted lines
> On 2025-09-05 at 12:14:38, Jonas Rebmann wrote:
>> In snapshot builds of git, git-version uses a modified variant of the
>> git-describe output, e.g. 2.51.0.178.g2462961280 instead of
>> 2.51.0-178-g2462961280 for seemingly historical reasons.
>> 
>> This is not semver compliant which makes the output harder to parse in
>> tooling such as b4, which currently errors out when using a snapshot
>> build of git.
>
> Git doesn't follow SemVer.  We make breaking and incompatible changes
> without bumping the major version all the time, so it doesn't make sense
> to say that we should follow SemVer for version numbers.
>
> I would say that since Git has had this version number format for a long
> time, b4, which is much newer and should be designed to work with Git,
> should gracefully handle the Git version number rather than have Git
> conform to b4.
Well said.

If somebody cares about the format deeply enough to patch it, it is likely that somebody else cares equally deeply about the current format and depends on it, as Git these days are used by more than a few thousands of people, and "semvar syntax" is too weak a reason to change it for everybody.

If somebody wants to have their own versioning scheme, there is an escape hatch to drop the "version" file in their source material, which does not have to change versioning schemes used by other builders with a patch like this one.

Thanks.
Previous: Jonas RebmannNext: Kristoffer Haugsbakk
Message 4 of 5 in “GIT-VERSION-GEN: Use standard versioning suffix”
  1. GIT-VERSION-GEN: Use standard versioning suffixJonas Rebmann, Sep 5, 2025
  2. brian m. carlsonSep 5, 2025
  3. Jonas RebmannSep 5, 2025
  4. Junio C HamanoSep 5, 2025
  5. Kristoffer HaugsbakkSep 5, 2025

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.