bug-gnulib
[Top][All Lists]
Advanced

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

Re: git-version-gen: add support for empty release commits


From: Bruno Haible
Subject: Re: git-version-gen: add support for empty release commits
Date: Sat, 11 May 2019 13:46:33 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

Hi Dmitry,

> In fact, git describe doesn't care about emptiness of commits.

It does care during "git rebase -i".

> This change has nothing to do with empty release commits.
> This change is about using lightweight tags (which are not tag objects
> but references to commit objects) in git-version-gen.

Ah, thanks! I didn't know about this difference. The manual page [1] explains
it:

  "Annotated tags are meant for release while lightweight tags are meant
   for private or temporary object labels. For this reason, some git commands
   for naming objects (like git describe) will ignore lightweight tags
   by default."

I've changed the my gettext tag from a lightweight tag to an annotated tag,
and "git describe" now behaves as expected.
=> No need to change the git-version-gen script.

Bruno

[1] https://git-scm.com/docs/git-tag




reply via email to

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