![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
26 Nov
2012
26 Nov
'12
11:39 a.m.
On Mon, 26 Nov 2012, Thomas A. Schmitz wrote:
Hi all,
this is a very easy one, but I couldn't find information: for a document under version control, I would like to typeset the git revision and the context version used in a footer. For git, I have come up with
\starttext
git revision \ctxlua{context(os.resultof("git --no-pager log --pretty='\%h of \%aD' -1"))}
\stoptext
But what is the easiest way to typeset the context version? There must be something easier than
\ctxlua{context(os.resultof("context --version | grep current"))}, right?
\contextversion Aditya