summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gitinfo2
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-11-21 22:29:15 +0000
committerKarl Berry <karl@freefriends.org>2015-11-21 22:29:15 +0000
commit98aafffa575aca5e47e04b69c70a87d7c95a37df (patch)
treeb90b7f2abba7cbebc38e48dd0b5a2847be8feb5d /Master/texmf-dist/tex/latex/gitinfo2
parent8596be0f15d110b8655d08aa44db806eac9729e3 (diff)
gitinfo2 (20nov15)
git-svn-id: svn://tug.org/texlive/trunk@38913 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gitinfo2')
-rw-r--r--Master/texmf-dist/tex/latex/gitinfo2/gitexinfo.sty4
-rw-r--r--Master/texmf-dist/tex/latex/gitinfo2/gitinfo2.sty14
2 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/gitinfo2/gitexinfo.sty b/Master/texmf-dist/tex/latex/gitinfo2/gitexinfo.sty
index ed5b3c27fba..0f80141185d 100644
--- a/Master/texmf-dist/tex/latex/gitinfo2/gitexinfo.sty
+++ b/Master/texmf-dist/tex/latex/gitinfo2/gitexinfo.sty
@@ -15,10 +15,10 @@
% This work consists of these files:
% gitinfo2.sty, gitexinfo.sty, gitinfo2.tex, gitinfo2.pdf,
% gitinfo2test.tex, post-xxx-sample.txt,
-% and gitPseudoHeadInfo.gin
+% and gitHeadLocal.gin
% -----------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{gitexinfo}[2015/11/14 v2.0.6 Auxiliary package for gitinfo2]
+\ProvidesPackage{gitexinfo}[2015/11/22 v2.0.7 Auxiliary package for gitinfo2]
\SetupKeyvalOptions{family=gitinfo,prefix=gitInf@}
\DeclareStringOption{shash}
\DeclareStringOption{lhash}
diff --git a/Master/texmf-dist/tex/latex/gitinfo2/gitinfo2.sty b/Master/texmf-dist/tex/latex/gitinfo2/gitinfo2.sty
index bfe37398131..29a94918ce1 100644
--- a/Master/texmf-dist/tex/latex/gitinfo2/gitinfo2.sty
+++ b/Master/texmf-dist/tex/latex/gitinfo2/gitinfo2.sty
@@ -1,5 +1,5 @@
% gitinfo2.sty
-% Copyright 2014 Brent Longborough
+% Copyright 2015 Brent Longborough
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -15,10 +15,10 @@
% This work consists of these files:
% gitinfo2.sty, gitexinfo.sty, gitinfo2.tex, gitinfo2.pdf,
% gitinfo2test.tex, post-xxx-sample.txt,
-% and gitPseudoHeadInfo.gin
+% and gitHeadLocal.gin
% -----------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{gitinfo2}[2015/11/08 v2.0.5 git revision information]
+\ProvidesPackage{gitinfo2}[2015/11/22 v2.0.7 git revision information]
\RequirePackage{etoolbox}
\RequirePackage{xstring}
\RequirePackage{kvoptions}
@@ -26,6 +26,7 @@
\SetupKeyvalOptions{family=gitinfo,prefix=gitInf@}
\DeclareBoolOption{draft}
\DeclareBoolOption{grumpy}
+\DeclareBoolOption{local}
\DeclareBoolOption{pcount}
\DeclareBoolOption{footinfo}
\DeclareBoolOption{mark}
@@ -76,7 +77,12 @@
% private constants
\providecommand{\GI@repo@prefix}{}
-\providecommand{\GI@githeadinfo@file}{\GI@repo@prefix.git/gitHeadInfo.gin}
+\ifbool{gitInf@local}{%
+ \providecommand{\GI@githeadinfo@file}{gitHeadLocal.gin}
+ \def\gitInf@maxdepth{0}
+}{%
+ \providecommand{\GI@githeadinfo@file}{\GI@repo@prefix.git/gitHeadInfo.gin}
+}
\newcommand{\gitInf@dirtflag}{}
\newcommand{\gitInf@describe}{}
\newcommand{\gitInf@mcount}{}