On Friday, 23 Dec 2016 at 17:34, David Talmage wrote: > I'd like to insert the git hash of HEAD in the org-mode documents that > I export. Is there an easy way? I'm exporting to LaTeX.
Anything you can do in a shell could be exported to LaTeX. E.g. I do
the following with mercurial in one of my documents:
#+begin_src org
,* Recent change history
,#+name: changehistoryshellblock
,#+begin_src shell :exports results :results output
hg log --template "{date|shortdate} {desc|firstline}\n" --limit 10 fresa.org
,#+end_src
#+end_src
HTH,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de
signature.asc
Description: PGP signature
