Cache Git configuration per buffer, not globally.

Thanks to Alexey Voinov and Marcin Bachry!
This commit is contained in:
Marius Vollmer 2009-03-08 03:42:33 +02:00
parent a868715885
commit e57887dc2e

View file

@ -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)