branch: elpa/git-commit
commit 613682a70631178caee15d1b5a16fae90da4af7b
Author: Kyle Meyer <[email protected]>
Commit: Kyle Meyer <[email protected]>

    magit-git.el: Silence byte-compiler on older Emacs versions
    
    On Emacs 27 and earlier, a recently added call to format-spec leads to
    a byte-compiler warning about format-spec being an unknown function.
    This doesn't happen on Emacs 28, where format-spec is autoloaded.
---
 lisp/magit-git.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 256a4b73fe..80b88725b2 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -31,6 +31,8 @@
 
 (require 'magit-base)
 
+(require 'format-spec)
+
 ;; From `magit-branch'.
 (defvar magit-branch-prefer-remote-upstream)
 (defvar magit-published-branches)

Reply via email to