bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] git-version-gen: detect untagged revisions


From: Mats Erik Andersson
Subject: [PATCH] git-version-gen: detect untagged revisions
Date: Tue, 14 Apr 2015 00:04:47 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Hello there,

I have for some time been disturbed by the fact that 'git-version-gen'
relies on the presence of an annotated tag in order to pick a good
revision string.  The following patch is adding a mechanism to use
the call 'git describe --always' as the very last resort, in the
sense that it enters only if the fallback string is empty.

The addition of a leading 'g' to the revision hash is mostly a
convenience, but the usability of the patched version applied
to some cloned directory of small depth turned out more pleasant
than I had expected.

Best regards,
  Mats Erik Andersson, on behalf of GNU Inetutils

Attachment: 0001-git-version-gen-detect-untagged-revisions.patch
Description: Text Data


reply via email to

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