From 7236bc97226801e86fadaa3969da5ac801fbd91d Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 25 May 2022 22:28:01 +0300 Subject: [PATCH] Add git revision --- .emacs.d/esy.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.2