Minor refactors & comment/message revision

This commit is contained in:
Henrik Lissner 2020-05-25 22:11:15 -04:00
parent 519a402f62
commit 3253ca8435
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 33 additions and 30 deletions

View file

@ -154,13 +154,13 @@ branch and commit."
(interactive)
(require 'vc-git)
(let ((default-directory doom-core-dir))
(print! "Doom v%s (Emacs v%s)\nBranch: %s\nCommit: %s\nBuild date: %s"
(print! "Doom v%s (%s)\nEmacs v%s\nBranch: %s\nBuild date: %s"
doom-version
(or (vc-git-working-revision doom-core-dir)
"n/a")
emacs-version
(or (vc-git--symbolic-ref doom-core-dir)
"n/a")
(or (vc-git-working-revision doom-core-dir)
"n/a")
(or (cdr (doom-call-process "git" "log" "-1" "--format=%ci"))
"n/a"))))

View file

@ -89,7 +89,7 @@ Grabs the latest commit id of the package using 'git'."
"git" "ls-remote" url
(unless select
(or branch straight-vc-git-default-branch)))))
(user-error "%s: no id from %s" package url)))
(user-error "Couldn't find a recipe for %s" package)))
(id (car (split-string
(if select
(completing-read "Commit: " (split-string id "\n" t))