branch: elpa/git-commit commit 6c98ba3dac1c64c790d08d4b40bda2f16474bab3 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Use fboundp instead of requiring magit-wip If the library hasn't been loaded yet, then the modes that it defines cannot possibly be in use. --- lisp/magit-log.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/magit-log.el b/lisp/magit-log.el index 47c3fb6baf..16c4e277ea 100644 --- a/lisp/magit-log.el +++ b/lisp/magit-log.el @@ -453,8 +453,8 @@ the upstream isn't ahead of the current branch) show." ("H" "HEAD" magit-reflog-head) ("O" "other" magit-reflog-other)] [:if (lambda () - (require 'magit-wip) - (magit--any-wip-mode-enabled-p)) + (and (fboundp 'magit--any-wip-mode-enabled-p) + (magit--any-wip-mode-enabled-p))) :description "Wiplog" ("i" "index" magit-wip-log-index) ("w" "worktree" magit-wip-log-worktree)]