Re: [O] Insert git hash into exported document

2017-01-05 Thread Michael Welle
Hello, Eric S Fraga writes: > On Saturday, 24 Dec 2016 at 09:07, Michael Welle wrote: > > [...] > >> do you have some mechanism that warns you if you try to export >> uncommitted changes? I'm not sure how such a process should be designed. > > I do not. I manually always

Re: [O] Insert git hash into exported document

2017-01-03 Thread Eric S Fraga
On Saturday, 24 Dec 2016 at 09:07, Michael Welle wrote: [...] > do you have some mechanism that warns you if you try to export > uncommitted changes? I'm not sure how such a process should be designed. I do not. I manually always check the status of the working directory (C-x v d RET). In any

Re: [O] Insert git hash into exported document

2016-12-28 Thread David Talmage
On Fri, Dec 23, 2016 at 3:13 PM, Daniele Pizzolli wrote: > > David Talmage writes: > > > 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. > > ... #+NAME: hash-from-lisp > #+BEGIN_SRC emacs-lisp >

Re: [O] Insert git hash into exported document

2016-12-24 Thread Michael Welle
Hello, Eric S Fraga writes: > 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

Re: [O] Insert git hash into exported document

2016-12-23 Thread Eric S Fraga
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

Re: [O] Insert git hash into exported document

2016-12-23 Thread Daniele Pizzolli
David Talmage writes: > 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. [] Hello, maybe you can start with a simple: #+NAME: hash-from-lisp #+BEGIN_SRC emacs-lisp (shell-command-to-string "git rev-parse

[O] Insert git hash into exported document

2016-12-23 Thread David Talmage
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. I looked for it on worg. The mailing list on gmane.org is still off-line, alas.