Make *magit-commit* buffer read-only.
This commit is contained in:
parent
2e07984097
commit
133e40b90b
1 changed files with 5 additions and 3 deletions
6
magit.el
6
magit.el
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue