Simplify doom/version output

Only really needs to output Doom's version and build info.
This commit is contained in:
Henrik Lissner 2020-08-24 14:17:42 -04:00
parent 98283d302b
commit 5c6189fb4e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -201,16 +201,10 @@ ready to be pasted in a bug report on github."
"Display the current version of Doom & Emacs, including the current Doom "Display the current version of Doom & Emacs, including the current Doom
branch and commit." branch and commit."
(interactive) (interactive)
(require 'vc-git)
(let ((default-directory doom-core-dir)) (let ((default-directory doom-core-dir))
(print! "Doom v%s (%s)\nEmacs v%s\nBranch: %s\nBuild date: %s" (print! "Doom v%s (%s)"
doom-version doom-version
(or (vc-git-working-revision doom-core-dir) (or (cdr (doom-call-process "git" "log" "-1" "--format=%D %h %ci"))
"n/a")
emacs-version
(or (vc-git--symbolic-ref doom-core-dir)
"n/a")
(or (cdr (doom-call-process "git" "log" "-1" "--format=%ci"))
"n/a")))) "n/a"))))
;;;###autoload ;;;###autoload