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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

The following might not be immediately relevant in light of what brian
just wrote.

On Fri, Sep 5, 2025, at 14:14, Jonas Rebmann wrote:
>[snip]
> 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.
>
> For snapshot builds, use as version string the unmodified git-describe
> output with only the leading v stripped from the tag.
>
> Fixes: 5c7d3c9507f7 ("Allow building of RPM from interim snapshot.")

For other readers: this can be traced back to from

• `git log -S'VN=$(echo "$VN"' GIT-VERSION-GEN`
• which finds 374dfaa2e39 (Make GIT-VERSION-GEN tolerate missing git
  describe command again, 2006-01-26)
• which in turn references this 5c7d3c9507f (Allow building of RPM from
  interim snapshot., 2006-01-16)

This project doesn’t use this Kernel-style trailer.[1]  Also not the commit
reference style. (It uses `git show -s --pretty=reference <commit>`)

It’s more common to place it inside the body of the message.  Like a
replacement for the preceding “historical reasons”.

† 1: It’s almost only trailers which attribute people. (I am having a hard
    time coming up with exceptions; you can find at least 
    one Cherry-picked-from)

> Signed-off-by: Jonas Rebmann <jre@xxxxxxxxxxxxxx>





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux