removing "tag" details from git with a covering manuscript
The vc bundle is a cool little plan that removes details concerning a git repo for very easy insertion right into a LaTeX record. It does not presently extract details concerning whether the existing devote is marked and also what the tag name is. Just how would certainly I modify the vc
manuscript to do this?
And afterwards just how would certainly I modify the vc-git.awk
manuscript to add an added line to the created vc.tex documents? Probably I desire a line that resembles:
print "\\gdef\\GITTag{" Tag "}%"
yet I require an earlier line that informs awk what " Tag "
suggests?
This isn't an inquiry concerning LaTeX, it has to do with git, awk and also bash ...
You can get what devote tag indicate by:
git show -s 'TAG_NAME^{commit}' --format='%H'
Unfortunatly I'm worried that the only means of examining if devote is marked it to examine all tags.
git log --decorate -1 [commit]
If commit
(HEAD
if left out) has tags, the devote hash will certainly be adhered to by (tag: name)
(and also perhaps numerous various other symbolic referrals also). You can select this out extra especially with
git log --pretty=%d
Related questions