fix(magit): Remove +magit-optimize-process-calls-h

This commit is contained in:
Jaume Delclòs Coll
2025-06-10 21:00:13 +02:00
committed by Henrik Lissner
parent 313e8fb48b
commit d60d639efe

View File

@ -164,16 +164,6 @@ FUNCTION
(right (or (cdr-safe +magit-fringe-size) +magit-fringe-size))) (right (or (cdr-safe +magit-fringe-size) +magit-fringe-size)))
(set-window-fringes nil left right)))))) (set-window-fringes nil left right))))))
;; An optimization that particularly affects macOS and Windows users: by
;; resolving `magit-git-executable' Emacs does less work to find the
;; executable in your PATH, which is great because it is called so frequently.
;; However, absolute paths will break magit in TRAMP/remote projects if the
;; git executable isn't in the exact same location.
(add-hook! 'magit-status-mode-hook
(defun +magit-optimize-process-calls-h ()
(when-let (path (executable-find magit-git-executable t))
(setq-local magit-git-executable path))))
(add-hook! 'magit-diff-visit-file-hook (add-hook! 'magit-diff-visit-file-hook
(defun +magit-reveal-point-if-invisible-h () (defun +magit-reveal-point-if-invisible-h ()
"Reveal the point if in an invisible region." "Reveal the point if in an invisible region."