From cb0f6b140963fd2969dcacd875bff5bc03dfc734 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 21 Oct 2010 18:54:40 +0200 Subject: Version control hook for git. --- rappels-maths.tex | 4 +++- vc | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 vc diff --git a/rappels-maths.tex b/rappels-maths.tex index 8325f80..7d05c81 100644 --- a/rappels-maths.tex +++ b/rappels-maths.tex @@ -41,9 +41,11 @@ \author{David A. Madore} \maketitle {\footnotesize +\immediate\write18{sh ./vc > vcline.tex} \begin{center} -CVS: \verb=$Id: rappels-maths.tex,v 1.17 2009-10-21 18:30:30 david Exp $= +Git: \input{vcline.tex} \end{center} +\immediate\write18{echo ' (stale)' >> vcline.tex} \par} \pretolerance=10000 \tolerance=8000 diff --git a/vc b/vc new file mode 100644 index 0000000..2ab3e90 --- /dev/null +++ b/vc @@ -0,0 +1,2 @@ +#! /bin/sh +git log --pretty=format:'\verb=%h %ad=' -1 -- cgit v1.2.3