Allow visting of stashes.
This commit is contained in:
parent
0c6172f180
commit
8898ef7926
1 changed files with 8 additions and 1 deletions
9
magit.el
9
magit.el
|
@ -2417,7 +2417,14 @@ Prefix arg means justify as well."
|
||||||
(goto-line line)))
|
(goto-line line)))
|
||||||
((commit)
|
((commit)
|
||||||
(magit-show-commit info)
|
(magit-show-commit info)
|
||||||
(pop-to-buffer "*magit-commit*"))))
|
(pop-to-buffer "*magit-commit*"))
|
||||||
|
((stash)
|
||||||
|
(let ((buf (get-buffer "*magit-diff*"))
|
||||||
|
(inhibit-read-only t))
|
||||||
|
(if buf
|
||||||
|
(with-current-buffer buf
|
||||||
|
(erase-buffer))))
|
||||||
|
(magit-diff (cons (concat info "^2^") info)))))
|
||||||
|
|
||||||
(defun magit-show-item-or-scroll-up ()
|
(defun magit-show-item-or-scroll-up ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Add table
Reference in a new issue