I've found that git describe generates more descriptive revision.
It will generate revisions in the format of <last tag>-<number of commits since last tag>-g<short commit SHA> (e.g. script_v14-9-g3b847fd).
With the --always option it will fall back to a unique short commit SHA.
(see docs: https://www.git-scm.com/docs/git-describe)
PS: I've made it escape _ in the output since LaTeX doesn't like them unescaped.
I've found that
git describe
generates more descriptive revision. It will generate revisions in the format of<last tag>-<number of commits since last tag>-g<short commit SHA>
(e.g.script_v14-9-g3b847fd
). With the--always
option it will fall back to a unique short commit SHA. (see docs: https://www.git-scm.com/docs/git-describe)PS: I've made it escape
_
in the output since LaTeX doesn't like them unescaped.