Allow visting of stashes.

This commit is contained in:
John Wiegley 2009-02-03 16:33:43 -04:00
parent 0c6172f180
commit 8898ef7926

View file

@ -2417,7 +2417,14 @@ Prefix arg means justify as well."
(goto-line line)))
((commit)
(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 ()
(interactive)