texlive[55019] Master/texmf-dist: gitver (3may20)
commits+karl at tug.org
commits+karl at tug.org
Mon May 4 23:24:58 CEST 2020
Revision: 55019
http://tug.org/svn/texlive?view=revision&revision=55019
Author: karl
Date: 2020-05-04 23:24:57 +0200 (Mon, 04 May 2020)
Log Message:
-----------
gitver (3may20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/gitver/ChangeLog
trunk/Master/texmf-dist/doc/latex/gitver/README.md
trunk/Master/texmf-dist/doc/latex/gitver/gitver.pdf
trunk/Master/texmf-dist/doc/latex/gitver/gitver.tex
trunk/Master/texmf-dist/tex/latex/gitver/gitver.sty
Modified: trunk/Master/texmf-dist/doc/latex/gitver/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gitver/ChangeLog 2020-05-04 21:24:44 UTC (rev 55018)
+++ trunk/Master/texmf-dist/doc/latex/gitver/ChangeLog 2020-05-04 21:24:57 UTC (rev 55019)
@@ -1,2 +1,4 @@
-2019-02-06
- * initial release
\ No newline at end of file
+2019-02-06 - v1.0
+ * initial release
+2020-04-30 - v1.1
+ * Clean up docs and remove extra space from hash output
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/gitver/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gitver/README.md 2020-05-04 21:24:44 UTC (rev 55018)
+++ trunk/Master/texmf-dist/doc/latex/gitver/README.md 2020-05-04 21:24:57 UTC (rev 55019)
@@ -1,4 +1,4 @@
-Git Version (version 1.0)
+Git Version (version 1.1)
=========================
URL: https://github.com/charlesbaynham/gitver
Modified: trunk/Master/texmf-dist/doc/latex/gitver/gitver.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/gitver/gitver.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/gitver/gitver.tex 2020-05-04 21:24:44 UTC (rev 55018)
+++ trunk/Master/texmf-dist/doc/latex/gitver/gitver.tex 2020-05-04 21:24:57 UTC (rev 55019)
@@ -18,7 +18,7 @@
\title{\textsf{gitver} -- Git version tags \\
for \LaTeX{} projects}
\author{Charles Baynham}
-\date{2019/02/06 (v\,1.0)}
+\date{2020/04/30 (v\,1.1)}
\MaintainedBy{%
This file is maintained by Charles Baynham.\\%
Bug reports can be opened at\\%
@@ -30,8 +30,8 @@
\section{Introduction}
The \textsf{gitver} package gets a description of the current git version of this
-document and store it in a command |\gitVer|. If memoir or fancyhdr are in use, it
-will also add this to the document footers unless the option "noheader" is
+document and stores it in a command |\gitVer|. If memoir or fancyhdr are in use, it
+will also add this to the document footers unless the option |noheader| is
passed.
It also defines a command |\versionBox| which outputs a box containing the
@@ -39,8 +39,8 @@
For this to work, you must have git installed and available on the command
line, this document must be part of a git repository, and latex must be
-running in "shell escape" mode. This can be enabled by passing \textsf{--shell-escape}
-on the command line when compiling your docuemnt, or will be available in the
+running in ``shell escape'' mode. This can be enabled by passing \textsf{--shell-escape}
+on the command line when compiling your document, or will be available in the
options of whatever GUI you're using (try Googling).
Note that it's a good idea to tell git to ignore all the latex auxilary files,
@@ -60,7 +60,8 @@
\DescribeMacro{\gitVer}
%
-The main point of this package, the command |\gitVer| prints a string of text describing the current revision of this git repository. Use like so:
+The main point of this package, the command |\gitVer| prints a string of text
+describing the current revision of this git repository. Use like so:
\begin{quote}
The current version of this repository is ``|\gitVer{}|''.
\end{quote}
@@ -83,14 +84,19 @@
\subsection{Footers} % (fold)
\label{sub:footers}
-By default, \textsf{gitver} will try to place a |\versionBox| into the footer of your document. If you're using the |memoir| class or the |fancyhdr| package, this will happen automatically. This document has these footers enabled: have a look at the bottom of this page for an example.
+By default, \textsf{gitver} will try to place a |\versionBox| into the footer of
+your document. If you're using the |memoir| class or the |fancyhdr| package,
+this will happen automatically. This document has these footers enabled: have a
+look at the bottom of this page for an example.
\DescribeMacro{noheader}
You can disable the headers by adding the option |noheader| to the package call.
-If you include |gitver| without either of |memoir| or |fancyhdr| loaded, it will complain. To suppress this complaint, pass the |noheader| option.
+If you include |gitver| without either of |memoir| or |fancyhdr| loaded, it will
+complain. To suppress this complaint, pass the |noheader| option.
-To customise the header / footer behavior, pass |noheader| and then use a combination of |\versionBox| and |\gitVer| to make your own headers/footers.
+To customise the header / footer behavior, pass |noheader| and then use a
+combination of |\versionBox| and |\gitVer| to make your own headers/footers.
% subsection footers (end)
@@ -97,9 +103,17 @@
\subsection{Metadata} % (fold)
\label{sub:metadata}
-\DescribeMacro{nopdfinfo}
-By default, this package also adds the git tag to to pdf document's metadata under the subject field. To disable this behaviour, pass the option |nopdfinfo|.
+\DescribeMacro{nopdfinfo} By default, this package also adds the git tag to the
+pdf document's metadata under the subject field. To disable this behaviour, pass
+the option |nopdfinfo|.
% subsection metadata (end)
+\section{History}
+
+\begin{itemize}
+ \item v1.0 - First release
+ \item v1.1 - Remove extra space from output
+\end{itemize}
+
\end{document}
Modified: trunk/Master/texmf-dist/tex/latex/gitver/gitver.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/gitver/gitver.sty 2020-05-04 21:24:44 UTC (rev 55018)
+++ trunk/Master/texmf-dist/tex/latex/gitver/gitver.sty 2020-05-04 21:24:57 UTC (rev 55019)
@@ -19,7 +19,7 @@
\NeedsTeXFormat{LaTeX2e}
\def\@gitVerPkgName{gitver}
\ProvidesPackage{\@gitVerPkgName}
- [2019/02/06 v1.0 Access current git version and optionally add it to document headers]
+ [2020/04/30 v1.1 Access current git version and optionally add it to document headers]
\RequirePackage{hyperref}
\RequirePackage{catchfile}
@@ -73,10 +73,10 @@
\@gitver at successfalse
\IfFileExists{\jobname_desc.aux}{
% Read the file into \gitVer
- \CatchFileDef{\gitVer}{\jobname_desc.aux}{}
+ \CatchFileDef{\gitVer}{\jobname_desc.aux}{\endlinechar=-1}
- % Check if the macro \gitVer is "\par ": this is its definition if the file had no contents
- \def\@gitver at emptyfile{\par }
+ % Check if the macro \gitVer is empty: this is its definition if the file had no contents
+ \def\@gitver at emptyfile{}
\ifx\gitVer\@gitver at emptyfile%
\PackageError{\@gitVerPkgName}{Git output is empty: is this folder a git repo?}{Make sure that this directory has had "git init" called in it, and has at least one commit.}
More information about the tex-live-commits
mailing list.