bug-standards
[Top][All Lists]
Advanced

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

Suggesting Gnulib's git-version-gen


From: Mohammad Akhlaghi
Subject: Suggesting Gnulib's git-version-gen
Date: Sun, 15 May 2016 15:17:40 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

Hi,

I wanted to suggest adding Gnulib's build-aux/git-version-gen as an alternative in the "Test Releases" section of the GNU Maintainer Information.

This script automatically generates a version number based on the version controlled history of the project (using `git describe'). For example the version string `3.4.16-28c8' contains the following information:

1. The most recent tag in the project's history was 3.4.
2. The commit of this version is 16 commits after the 3.4 tag.
3. The commit hash starts with "28c8".

It is called from within configure.ac, automatically generated, robust, sortable, and meaningful. All these make it especially useful in test releases.

It would also encourage good practice in stable releases: A tag must first be registered in the Git history, for this script to generate the proper stable version. It will also add a `-dirty' string to the version number when there are uncommited changes, avoiding possible mistakes.

So I wanted to see if it would be possible to add it along with the other alternatives in the "Test Releases" section of the GNU Maintainer information document?

Cheers,
Mohammad



reply via email to

[Prev in Thread] Current Thread [Next in Thread]