]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Add git revision
authorEshel Yaron <eshel@areionsec.com>
Wed, 25 May 2022 19:28:01 +0000 (22:28 +0300)
committerEshel Yaron <eshel@areionsec.com>
Wed, 25 May 2022 19:28:01 +0000 (22:28 +0300)
.emacs.d/esy.org

index cf4ec49f6815f9a6b8d67dd83a47431884e8e296..e507132bec8282018925a357ee42e33299b539e8 100644 (file)
@@ -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