I think I do not understand the workflow of the gitinfo2 package correctly. The documentation says (shortend):
- Edit and format abc.tex until ready for release
- Commit the release version of abc.tex
- Tag the release
- checkout abc.pdf
- Format & commit the release version of abc.pdf
My question: How can the Git tag be aligned with the formatted PDF? The described workflow is showing two commits... When I am following it, the given tag in the commit history is "one behind". As consequence: when checking out the version where the tag is given, the PDF does not contain the tag.
I do not see different behaviour when using smartgit or commandline tool git.
Is this supposed to be? Can somebody help me?
Thank you,
Thomas
Edit: Added picture to specify my question.
As shown in the screenshot (graphical log view of Smartgit) the commit where the tag is given and the commit where the pdf was added - containing the right release info - are not identical. --> When checking out "Release 1.34" the PDF has not the right info. Only the following commit contains a correct set of data.
Edit 2:
As current workaround I am moving the tag after the PDF commit as described in this post.
texdoc gitinfo2
, for example).tex
source before the commit, then commit, then git tag ? this is bypassinggitinfo2
though which you may use for other things. And it also avoids control versioning thepdf
, thus reducing the repo size.