From 8898ef792658af8946032f0a96afc2ee829312de Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Feb 2009 16:33:43 -0400 Subject: [PATCH] Allow visting of stashes. --- magit.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 9e3cdea2..754028f6 100644 --- a/magit.el +++ b/magit.el @@ -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)