ransford / pdflatex-makefile

Simple Makefile for pdflatex-produced documents
113 stars 37 forks source link

Generate more descriptive git revisions #22

Closed riyad closed 9 years ago

riyad commented 9 years ago

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.

ransford commented 9 years ago

This helps a lot... thanks!

riyad commented 9 years ago

My pleasure. :smile: