<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 23 July 2015 at 23:26, Chris Rorvick <span dir="ltr">&lt;<a href="mailto:chris@rorvick.com" target="_blank">chris@rorvick.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1gm" class="a3s" style="overflow:hidden">Alternatively, there actually is a pretty good Git mechanism for this:<br>
git-describe(1).  Given a commit, git-describe finds the most recent<br>
previious tag and prints that tag, the number of commits since that<br>
tag, and the prefix of the given commit.</div></blockquote></div><br></div><div class="gmail_extra">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&#39;d pulled tags:<br><br><span style="font-family:monospace,monospace">$ git describe<br>2015a-69-ge6a6d02<br><br>$ git pull origin --tags<br>...<br><br>$ git describe<br>2015e-16-ge6a6d02</span><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">--<br>Tim Parenti<br></div></div>
</div></div>