From 635f0a3eec6f8a2a18891c6c7b5ed1fc5200fc76 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 2 Apr 2025 06:12:44 -0400 Subject: [PATCH] refactor(magit): magit-credential-cache-daemon-socket: remove hack This is handled upstream now and is no longer needed. --- 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 d60e73510..4e9d7e5da 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -52,16 +52,6 @@ Only has an effect in GUI Emacs.") (add-hook 'doom-switch-buffer-hook #'+magit-revert-buffer-maybe-h) (add-hook 'doom-switch-frame-hook #'+magit-mark-stale-buffers-h) - ;; The default location for git-credential-cache is in - ;; ~/.cache/git/credential. However, if ~/.git-credential-cache/ exists, then - ;; it is used instead. Magit seems to be hardcoded to use the latter, so here - ;; we override it to have more correct behavior. - (unless (file-exists-p "~/.git-credential-cache/") - (setq magit-credential-cache-daemon-socket - (doom-glob (or (getenv "XDG_CACHE_HOME") - "~/.cache/") - "git/credential/socket"))) - ;; Prevent sudden window position resets when staging/unstaging/discarding/etc ;; hunks in `magit-status-mode' buffers. It's disorienting, especially on ;; larger projects.