summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/latexgit
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-04-21 03:02:38 +0000
committerNorbert Preining <norbert@preining.info>2020-04-21 03:02:38 +0000
commit8731cc5ad70723b9a155917df509d857579c355d (patch)
treef6594e2b25c3e0aaf4838d7ada0e8885af3fd532 /macros/latex/contrib/latexgit
parent2a6dafa8ee740f345650d6a697665bf85a57cc77 (diff)
CTAN sync 202004210302
Diffstat (limited to 'macros/latex/contrib/latexgit')
-rw-r--r--macros/latex/contrib/latexgit/README.md2
-rw-r--r--macros/latex/contrib/latexgit/latexgit.dtx23
-rw-r--r--macros/latex/contrib/latexgit/latexgit.ins4
-rw-r--r--macros/latex/contrib/latexgit/latexgit.pdfbin435404 -> 435125 bytes
4 files changed, 22 insertions, 7 deletions
diff --git a/macros/latex/contrib/latexgit/README.md b/macros/latex/contrib/latexgit/README.md
index 3cd85a0da0..7fe43a90bc 100644
--- a/macros/latex/contrib/latexgit/README.md
+++ b/macros/latex/contrib/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 &copy; 2016 [Camil Staps][camilstaps]. Licensed under
+Copyright &copy; 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/macros/latex/contrib/latexgit/latexgit.dtx b/macros/latex/contrib/latexgit/latexgit.dtx
index 100d1d16a8..2d8435fc7b 100644
--- a/macros/latex/contrib/latexgit/latexgit.dtx
+++ b/macros/latex/contrib/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/macros/latex/contrib/latexgit/latexgit.ins b/macros/latex/contrib/latexgit/latexgit.ins
index 532ab7ac2d..e73c6f02b2 100644
--- a/macros/latex/contrib/latexgit/latexgit.ins
+++ b/macros/latex/contrib/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/macros/latex/contrib/latexgit/latexgit.pdf b/macros/latex/contrib/latexgit/latexgit.pdf
index a6dd138f0c..d72670d9b5 100644
--- a/macros/latex/contrib/latexgit/latexgit.pdf
+++ b/macros/latex/contrib/latexgit/latexgit.pdf
Binary files differ