From: Eshel Yaron Date: Wed, 25 May 2022 19:28:01 +0000 (+0300) Subject: Add git revision X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7236bc97226801e86fadaa3969da5ac801fbd91d;p=dotfiles.git Add git revision --- diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index cf4ec49..e507132 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -20,13 +20,25 @@ The source of this document is managed with Git in [[https://git.sr.ht/~eshel/do SourceHut]]. An [[https://eshelyaron.com/esy.html][online HTML version]] is also published on my website. See [[#exporting][settings for exporting and publishing]] below for more information regarding [[https://eshelyaron.com][my website]]. -#+begin_src emacs-lisp :exports results +** Last modification time + +Last modification time of this file: + +#+begin_src emacs-lisp :tangle no :exports results (format-time-string "Last updated at: %d-%m-%Y" (file-attribute-modification-time (file-attributes esy/source-path))) #+end_src +** Current source control revision + +Git revision of this file: + +#+begin_src emacs-lisp :tangle no :exports results + (vc-git-working-revision esy/source-path) +#+end_src + * Fresh installation :PROPERTIES: :CUSTOM_ID: install