mkhistory
Formatting git changelogs for LaTeX
Most of the things I write, be it software or something else, are under revision control with git. Mostly because it makes undoing mistakes easy. My LaTeX documents are no exception. With software it is customary to have a change-log (like the one generated by the git log command). I wanted to do something similar for LaTeX.
The easiest way to do that would probably be to save the git log output to a file and include that with a \verbatimfile command from the verbatimfiles package. But that would look pretty ugly.
So I decided to write a program that parses the output of the git log command and format it using a tabular environment. The listing of this program is given below, but you can also download it.
This is some git log output:
And this is wat it looks like after mkhistory.py has done its job and the resulting LaTeX code has been processed into a pdf:
| source: | mkhistory.py |
|---|---|
| GPG signature: | -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEABECAAYFAlDY2BQACgkQEnfvsMMhpyUKzgCdEBoG8YtAs9aKWMLiEEAs0u5E
S4IAmwV6LwomRFn9Zf9aP92yYae2zGJJ
=kkE6
-----END PGP SIGNATURE-----
|
| SHA256 hash: | 31940305d046137555474e8c50c95e34f36cf6535a507d1f714a6d55a3999519 |
| Requirements: | python, git |