Apparently git comes with batteries included. If you want to track the 'distance' from a certain tag
all you have to do it use the command git describe
:
[3] oz123@debian:~/software/pwman3 [master] $ git describe
v0.4.3-7-g75ae633
The output is easy to understand:
<tag>-<N-Commits>-<hash of the latest commit>
To see this output you first have to annotate or sign you tags, so check the man page
of git-tag
.
Share this post: