mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(magit): magit-credential-cache-daemon-socket: remove hack
This is handled upstream now and is no longer needed.
This commit is contained in:
@ -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-buffer-hook #'+magit-revert-buffer-maybe-h)
|
||||||
(add-hook 'doom-switch-frame-hook #'+magit-mark-stale-buffers-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
|
;; Prevent sudden window position resets when staging/unstaging/discarding/etc
|
||||||
;; hunks in `magit-status-mode' buffers. It's disorienting, especially on
|
;; hunks in `magit-status-mode' buffers. It's disorienting, especially on
|
||||||
;; larger projects.
|
;; larger projects.
|
||||||
|
Reference in New Issue
Block a user