From d60d639efe50eb609fb3b7e0555e8d1782ac27bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Delcl=C3=B2s=20Coll?= Date: Tue, 10 Jun 2025 21:00:13 +0200 Subject: [PATCH] fix(magit): Remove +magit-optimize-process-calls-h --- modules/tools/magit/config.el | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index ce8487552..eb08d7de0 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -164,16 +164,6 @@ FUNCTION (right (or (cdr-safe +magit-fringe-size) +magit-fringe-size))) (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 (defun +magit-reveal-point-if-invisible-h () "Reveal the point if in an invisible region."