branch: elpa/git-commit
commit fecfa11e40078b9a902db455e97accb063b4aefd
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    No longer track generated %.texi
    
    That also means that we can use the (updated) {{{version}}} macro again.
---
 docs/.orgconfig        | 2 +-
 docs/magit-section.org | 4 ++--
 docs/magit.org         | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/.orgconfig b/docs/.orgconfig
index 138fae42e2..c72bd72472 100644
--- a/docs/.orgconfig
+++ b/docs/.orgconfig
@@ -5,6 +5,6 @@
 
 #+macro: kbd (eval (let ((case-fold-search nil) (regexp (regexp-opt '("SPC" 
"RET" "LFD" "TAB" "BS" "ESC" "DELETE" "SHIFT" "Ctrl" "Meta" "Alt" "Cmd" "Super" 
"UP" "LEFT" "RIGHT" "DOWN") 'words))) (format 
"@@texinfo:@kbd{@@%s@@texinfo:}@@" (replace-regexp-in-string regexp 
"@@texinfo:@key{@@\\&@@texinfo:}@@" $1 t))))
 #+macro: year (eval (format-time-string "%Y"))
-#+macro: version (eval (or (getenv "PACKAGE_REVDESC") (getenv 
"PACKAGE_VERSION") (ignore-errors (car (process-lines "git" "describe" 
"--exact"))) (ignore-errors (concat (car (process-lines "git" "describe" (if 
(getenv "AMEND") "HEAD~" "HEAD"))) "+1"))))
+#+macro: version (eval (if-let ((tag (ignore-errors (car (process-lines "git" 
"describe" "--exact-match"))))) (concat "version " (substring tag 1)) (or 
(ignore-errors (car (process-lines "git" "describe"))) "version (unknown)")))
 
 #+language: en
diff --git a/docs/magit-section.org b/docs/magit-section.org
index df5aa44e2e..c58136b20a 100644
--- a/docs/magit-section.org
+++ b/docs/magit-section.org
@@ -7,7 +7,7 @@
 #+texinfo_dir_category: Emacs
 #+texinfo_dir_title: Magit-Section: (magit-section).
 #+texinfo_dir_desc: Use Magit sections in your own packages.
-#+subtitle: for version 3.3.0.50-git
+#+subtitle: for {{{version}}}
 
 #+setupfile: .orgconfig
 
@@ -21,7 +21,7 @@ user options see [[info:magit#Sections]].  This manual 
documents how you
 can use sections in your own packages.
 
 #+texinfo: @noindent
-This manual is for Magit-Section version 3.3.0.50-git.
+This manual is for Magit-Section {{{version}}}.
 
 #+texinfo: @insertcopying
 :END:
diff --git a/docs/magit.org b/docs/magit.org
index d94fbbdb9d..6617445709 100644
--- a/docs/magit.org
+++ b/docs/magit.org
@@ -7,7 +7,7 @@
 #+texinfo_dir_category: Emacs
 #+texinfo_dir_title: Magit: (magit).
 #+texinfo_dir_desc: Using Git from Emacs with Magit.
-#+subtitle: for version 3.3.0.50-git
+#+subtitle: for {{{version}}}
 
 #+setupfile: .orgconfig
 
@@ -20,7 +20,7 @@ directly from within Emacs.  While many fine Git clients 
exist, only
 Magit and Git itself deserve to be called porcelains.
 
 #+texinfo: @noindent
-This manual is for Magit version 3.3.0.50-git.
+This manual is for Magit {{{version}}}.
 
 #+texinfo: @insertcopying
 :END:

Reply via email to