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