Giter VIP home page Giter VIP logo

gitver's People

Contributors

charlesbaynham avatar spakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gitver's Issues

use datetime2 instead of datetime

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?

Git command failed

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}

Feature Request: add \gitDate command

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 things

What I need is:

\gitDate which should yield 2020-11-16

Display current git tag if any

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.