texlive[54811] Master/texmf-dist: latexgit (20apr20)
commits+karl at tug.org
commits+karl at tug.org
Mon Apr 20 23:07:14 CEST 2020
Revision: 54811
http://tug.org/svn/texlive?view=revision&revision=54811
Author: karl
Date: 2020-04-20 23:07:14 +0200 (Mon, 20 Apr 2020)
Log Message:
-----------
latexgit (20apr20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/latexgit/README.md
trunk/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf
trunk/Master/texmf-dist/source/latex/latexgit/latexgit.dtx
trunk/Master/texmf-dist/source/latex/latexgit/latexgit.ins
trunk/Master/texmf-dist/tex/latex/latexgit/latexgit.sty
Modified: trunk/Master/texmf-dist/doc/latex/latexgit/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latexgit/README.md 2020-04-20 21:06:59 UTC (rev 54810)
+++ trunk/Master/texmf-dist/doc/latex/latexgit/README.md 2020-04-20 21:07:14 UTC (rev 54811)
@@ -7,7 +7,7 @@
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
Modified: trunk/Master/texmf-dist/doc/latex/latexgit/latexgit.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/latexgit/latexgit.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/latexgit/latexgit.dtx 2020-04-20 21:06:59 UTC (rev 54810)
+++ trunk/Master/texmf-dist/source/latex/latexgit/latexgit.dtx 2020-04-20 21:07:14 UTC (rev 54811)
@@ -16,7 +16,7 @@
Author: Camil Staps <info at camilstaps.nl>
\endpreamble
\postamble
-Copyright (c) 2016 Camil Staps <info at camilstaps.nl>
+Copyright (c) 2016-2020 Camil Staps <info at camilstaps.nl>
Licensed under GPL v3.
\endpostamble
\usedir{tex/latex/latexgit}
@@ -226,11 +226,15 @@
%
%\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 @@
% \end{comment}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{latexgit}[2020/03/18]
+\ProvidesPackage{latexgit}[2020/04/20]
\RequirePackage{pgfkeys}
\RequirePackage{datetime}
@@ -319,6 +323,17 @@
% \end{macrocode}
%\end{macro}
%
+%\begin{macro}{\gitcommand}
+% A wrapper around \cs{git at command} and \cs{git at result}, to directly typeset the
+% result of arbitrary commands.
+% \begin{macrocode}
+\newcommand{\gitcommand}[2][]{%
+ \pgfkeys{/git,default,#1}%
+ \git at command{git #2}%
+ \git at 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}
Modified: trunk/Master/texmf-dist/source/latex/latexgit/latexgit.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/latexgit/latexgit.ins 2020-04-20 21:06:59 UTC (rev 54810)
+++ trunk/Master/texmf-dist/source/latex/latexgit/latexgit.ins 2020-04-20 21:07:14 UTC (rev 54811)
@@ -15,7 +15,7 @@
Author: Camil Staps <info at camilstaps.nl>
\endpreamble
\postamble
-Copyright (c) 2016 Camil Staps <info at camilstaps.nl>
+Copyright (c) 2016-2020 Camil Staps <info at camilstaps.nl>
Licensed under GPL v3.
\endpostamble
\usedir{tex/latex/latexgit}
@@ -23,7 +23,7 @@
\file{\jobname.sty}{\from{\jobname.dtx}{package}}
}
\endbatchfile
-%% Copyright (c) 2016 Camil Staps <info at camilstaps.nl>
+%% Copyright (c) 2016-2020 Camil Staps <info at camilstaps.nl>
%% Licensed under GPL v3.
%%
%% End of file `latexgit.ins'.
Modified: trunk/Master/texmf-dist/tex/latex/latexgit/latexgit.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexgit/latexgit.sty 2020-04-20 21:06:59 UTC (rev 54810)
+++ trunk/Master/texmf-dist/tex/latex/latexgit/latexgit.sty 2020-04-20 21:07:14 UTC (rev 54811)
@@ -8,7 +8,7 @@
%% latexgit
%% Author: Camil Staps <info at 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 at command{git #2}%
+ \git at result}
\catcode`\&=14\catcode`\%=11
\def\git at space{ }
\newcommand{\gitcommithash}[1][]{&
@@ -154,7 +158,7 @@
\fi&
}
\catcode`\&=4\catcode`\%=14
-%% Copyright (c) 2016 Camil Staps <info at camilstaps.nl>
+%% Copyright (c) 2016-2020 Camil Staps <info at camilstaps.nl>
%% Licensed under GPL v3.
%%
%% End of file `latexgit.sty'.
More information about the tex-live-commits
mailing list.