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)
(save-excursion
(set-buffer buf)
(setq buffer-read-only t)
(let ((inhibit-read-only t))
(erase-buffer)
(magit-insert-section 'commit nil nil
"git" "log" "--max-count=1" "-p" commit))))
(magit-insert-section 'commit nil 'magit-wash-diff
"git" "log" "--max-count=1" "-p" commit)))))
(defun magit-quit ()
(interactive)