From: Gustav Hållberg Date: Wed, 10 Dec 2008 20:03:50 +0000 (+0100) Subject: stgit.el: Add stgit-git-status X-Git-Tag: v0.15-rc1~82 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/0f076fe6b1a561a3a84a2f5938110118944577a2 stgit.el: Add stgit-git-status Signed-off-by: Gustav Hållberg Acked-by: David Kågedal Signed-off-by: Karl Hasselström --- diff --git a/contrib/stgit.el b/contrib/stgit.el index eb50213..220e159 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -9,6 +9,8 @@ ;; ;; To start: `M-x stgit' +(require 'git nil t) + (defun stgit (dir) "Manage stgit patches" (interactive "DDirectory: \n") @@ -149,6 +151,16 @@ Argument DIR is the repository path." (interactive) (bury-buffer)) +(defun stgit-git-status () + "Show status using `git-status'" + (interactive) + (unless (fboundp 'git-status) + (error "stgit-git-status requires git-status")) + (let ((dir default-directory)) + (save-selected-window + (pop-to-buffer nil) + (git-status dir)))) + (defvar stgit-mode-hook nil "Run after `stgit-mode' is setup.") @@ -167,6 +179,7 @@ Argument DIR is the repository path." ("h" . stgit-help) ("p" . previous-line) ("n" . next-line) + ("s" . stgit-git-status) ("g" . stgit-reload) ("r" . stgit-refresh) ("\C-c\C-r" . stgit-rename)