July 24, 2015
3:37 a.m.
On 23 July 2015 at 23:26, Chris Rorvick <chris@rorvick.com> wrote:
Alternatively, there actually is a pretty good Git mechanism for this: git-describe(1). Given a commit, git-describe finds the most recent previious tag and prints that tag, the number of commits since that tag, and the prefix of the given commit.
Interesting. It would be nice if that could be incorporated in some way, but it relies on having the tags in your copy of the repository. For example, although my copy was one commit behind a few moments ago, it had been months since I'd pulled tags: $ git describe 2015a-69-ge6a6d02 $ git pull origin --tags ... $ git describe 2015e-16-ge6a6d02 -- Tim Parenti