charlesbaynham / gitver Goto Github PK
View Code? Open in Web Editor NEWA Latex package for tagging projects with their git hash
A Latex package for tagging projects with their git hash
This is a small issue. When I install gitver
I had to install the deprecated datetime
which is not used by any package I currently use. Could you switch to the newer datetime2
in order to keep the requirements for new package installations low?
Thanks a lot for this package.
"git describe --match nopenopenope --always --long --dirty --abbrev=6" is working fine with gitbash.
Unfortunately I've got an error message when using \gitVer with lualatex -shell-escape and the following code
\documentclass{article}
\usepackage[noheader,nopdfinfo]{gitver}
\begin{document}
\gitVer
\end{document}
Attached .aux and .log
LuaExo.log
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\gdef @ABSPage@last{1}
It seems that all information is already there:
\gitVer
yields the hashtag (I am happy that it's without the #
)\versionBox
yields a combination of hashtag, date and other thingsWhat I need is:
\gitDate
which should yield 2020-11-16
Hello, thanks for this nice package!
You can associate a tag to a commit with git tag <tag name>
, which is useful to set human-readable document version (when distributing it). I don't think such tags are currently used by this package. It would be nice if, when the current commit is associated to a Git tag, this tag could be displayed instead of the commit hash.
By instance, on commit #012345
associated with tag 0.1.0
, \gitVer
would give "0.1.0", \versionBox
would give "Manuscript version: 0.1.0 - 2022-08-29 13:41", and the PDF metadata would be "Version 0.1.0".
Git tag can be extracted with git describe --tags --always
for the current commit. If the current commit comes after a previous commit associated with a tag, <tag>-<number of commits since the tag>-<current commit hash>
is returned. If the project has no Git tag, the current commit hash is returned.
This behavior could be the default, and would be disabled with a package option noGitTag
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.