Cache Git configuration per buffer, not globally.
Thanks to Alexey Voinov and Marcin Bachry!
This commit is contained in:
parent
a868715885
commit
e57887dc2e
1 changed files with 4 additions and 0 deletions
4
magit.el
4
magit.el
|
@ -2574,6 +2574,10 @@ Prefix arg means justify as well."
|
|||
|
||||
(defvar magit-have-graph 'unset)
|
||||
(defvar magit-have-decorate 'unset)
|
||||
(make-variable-buffer-local 'magit-have-graph)
|
||||
(put 'magit-have-graph 'permanent-local t)
|
||||
(make-variable-buffer-local 'magit-have-decorate)
|
||||
(put 'magit-have-decorate 'permanent-local t)
|
||||
|
||||
(defun magit-configure-have-graph ()
|
||||
(if (eq magit-have-graph 'unset)
|
||||
|
|
Loading…
Reference in a new issue