summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/latexgit/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/latexgit/latexgit.pdfbin435404 -> 435125 bytes
-rw-r--r--Master/texmf-dist/source/latex/latexgit/latexgit.dtx23
-rw-r--r--Master/texmf-dist/source/latex/latexgit/latexgit.ins4
-rw-r--r--Master/texmf-dist/tex/latex/latexgit/latexgit.sty8
5 files changed, 28 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/latexgit/README.md b/Master/texmf-dist/doc/latex/latexgit/README.md
index 3cd85a0da08..7fe43a90bc3 100644
--- a/Master/texmf-dist/doc/latex/latexgit/README.md
+++ b/Master/texmf-dist/doc/latex/latexgit/README.md
@@ -7,7 +7,7 @@ Several macros are defined to fetch git information and typeset it. The macros
defined by LaTeXgit can be helpful to documentation authors and others to whom
clear document versioning is important.
-Copyright © 2016 [Camil Staps][camilstaps]. Licensed under
+Copyright © 2016&ndsah;2020 [Camil Staps][camilstaps]. Licensed under
GPL v3, see the LICENSE file for more details.
[ctan]: http://www.ctan.org/pkg/latexgit
diff --git a/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf b/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf
index a6dd138f0cd..d72670d9b5b 100644
--- a/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf
+++ b/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/latexgit/latexgit.dtx b/Master/texmf-dist/source/latex/latexgit/latexgit.dtx
index 100d1d16a8d..2d8435fc7ba 100644
--- a/Master/texmf-dist/source/latex/latexgit/latexgit.dtx
+++ b/Master/texmf-dist/source/latex/latexgit/latexgit.dtx
@@ -16,7 +16,7 @@ latexgit
Author: Camil Staps <info@camilstaps.nl>
\endpreamble
\postamble
-Copyright (c) 2016 Camil Staps <info@camilstaps.nl>
+Copyright (c) 2016-2020 Camil Staps <info@camilstaps.nl>
Licensed under GPL v3.
\endpostamble
\usedir{tex/latex/latexgit}
@@ -226,11 +226,15 @@ Licensed under GPL v3.
%
%\DescribeMacro{\gitcommitdate}
% This macro displays the \git{} commit date.
-% The following example shows a usage example and shows the results of the
-% options
+% The following example shows the effect of the options
% \gitopt{formatDate}, \gitopt{formatTime} and \gitopt{showTimeZone}.
% \LTXinputExample[pos=b,numbers=none]{exmp/gitcommitdate.tex}
%
+%\DescribeMacro{\gitcommand}
+% This macro executes an arbitrary \git{} command and directly typesets the
+% result. It only accepts the option \gitopt{directory}.
+% \LTXinputExample[pos=b,numbers=none]{exmp/gitcommand.tex}
+%
%\section{Implementation}
%\label{sec:implementation}
%Define the package and load required packages.
@@ -240,7 +244,7 @@ Licensed under GPL v3.
% \end{comment}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{latexgit}[2020/03/18]
+\ProvidesPackage{latexgit}[2020/04/20]
\RequirePackage{pgfkeys}
\RequirePackage{datetime}
@@ -319,6 +323,17 @@ Licensed under GPL v3.
% \end{macrocode}
%\end{macro}
%
+%\begin{macro}{\gitcommand}
+% A wrapper around \cs{git@command} and \cs{git@result}, to directly typeset the
+% result of arbitrary commands.
+% \begin{macrocode}
+\newcommand{\gitcommand}[2][]{%
+ \pgfkeys{/git,default,#1}%
+ \git@command{git #2}%
+ \git@result}
+% \end{macrocode}
+%\end{macro}
+%
%In what follows, \verb$%$ may be used in calls to \git{}. Therefore we use
%\verb$&$ as comment character.
% \begin{macrocode}
diff --git a/Master/texmf-dist/source/latex/latexgit/latexgit.ins b/Master/texmf-dist/source/latex/latexgit/latexgit.ins
index 532ab7ac2d1..e73c6f02b2e 100644
--- a/Master/texmf-dist/source/latex/latexgit/latexgit.ins
+++ b/Master/texmf-dist/source/latex/latexgit/latexgit.ins
@@ -15,7 +15,7 @@ latexgit
Author: Camil Staps <info@camilstaps.nl>
\endpreamble
\postamble
-Copyright (c) 2016 Camil Staps <info@camilstaps.nl>
+Copyright (c) 2016-2020 Camil Staps <info@camilstaps.nl>
Licensed under GPL v3.
\endpostamble
\usedir{tex/latex/latexgit}
@@ -23,7 +23,7 @@ Licensed under GPL v3.
\file{\jobname.sty}{\from{\jobname.dtx}{package}}
}
\endbatchfile
-%% Copyright (c) 2016 Camil Staps <info@camilstaps.nl>
+%% Copyright (c) 2016-2020 Camil Staps <info@camilstaps.nl>
%% Licensed under GPL v3.
%%
%% End of file `latexgit.ins'.
diff --git a/Master/texmf-dist/tex/latex/latexgit/latexgit.sty b/Master/texmf-dist/tex/latex/latexgit/latexgit.sty
index f89079ab67e..d01af9bdb37 100644
--- a/Master/texmf-dist/tex/latex/latexgit/latexgit.sty
+++ b/Master/texmf-dist/tex/latex/latexgit/latexgit.sty
@@ -8,7 +8,7 @@
%% latexgit
%% Author: Camil Staps <info@camilstaps.nl>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{latexgit}[2020/03/18]
+\ProvidesPackage{latexgit}[2020/04/20]
\RequirePackage{pgfkeys}
\RequirePackage{datetime}
@@ -56,6 +56,10 @@
\endgroup%
\fi%
}
+\newcommand{\gitcommand}[2][]{%
+ \pgfkeys{/git,default,#1}%
+ \git@command{git #2}%
+ \git@result}
\catcode`\&=14\catcode`\%=11
\def\git@space{ }
\newcommand{\gitcommithash}[1][]{&
@@ -154,7 +158,7 @@
\fi&
}
\catcode`\&=4\catcode`\%=14
-%% Copyright (c) 2016 Camil Staps <info@camilstaps.nl>
+%% Copyright (c) 2016-2020 Camil Staps <info@camilstaps.nl>
%% Licensed under GPL v3.
%%
%% End of file `latexgit.sty'.