Make *magit-commit* buffer read-only.

This commit is contained in:
Marius Vollmer 2008-08-11 05:41:28 +03:00
parent 2e07984097
commit 133e40b90b

View file

@ -724,9 +724,11 @@ pushed.
(display-buffer buf) (display-buffer buf)
(save-excursion (save-excursion
(set-buffer buf) (set-buffer buf)
(erase-buffer) (setq buffer-read-only t)
(magit-insert-section 'commit nil nil (let ((inhibit-read-only t))
"git" "log" "--max-count=1" "-p" commit)))) (erase-buffer)
(magit-insert-section 'commit nil 'magit-wash-diff
"git" "log" "--max-count=1" "-p" commit)))))
(defun magit-quit () (defun magit-quit ()
(interactive) (interactive)