From: Gustav HÃ¥llberg Date: Tue, 4 Aug 2009 13:57:05 +0000 (+0200) Subject: stgit.el: Add stgit-redo as C-c C-_ and C-c C-/ X-Git-Tag: v0.15-rc2~11^2~23 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/b8463f1d9273127cdc99bbe85b6b7d7322094da7 stgit.el: Add stgit-redo as C-c C-_ and C-c C-/ Signed-off-by: Gustav HÃ¥llberg --- diff --git a/contrib/stgit.el b/contrib/stgit.el index 132c19e..31f36d7 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -718,8 +718,10 @@ file for (applied) copies and renames." ("G" . stgit-goto) ("=" . stgit-diff) ("D" . stgit-delete) - ([(control ?/)] . stgit-undo) + ([?\C-/] . stgit-undo) ("\C-_" . stgit-undo) + ([?\C-c ?\C-/] . stgit-redo) + ("\C-c\C-_" . stgit-redo) ("B" . stgit-branch) ("t" . ,toggle-map) ("d" . ,diff-map) @@ -1392,7 +1394,9 @@ deepest patch had before the squash." (defun stgit-undo (&optional arg) "Run stg undo. -With prefix argument, run it with the --hard flag." +With prefix argument, run it with the --hard flag. + +See also `stgit-redo'." (interactive "P") (stgit-capture-output nil (if arg @@ -1400,6 +1404,18 @@ With prefix argument, run it with the --hard flag." (stgit-run "undo"))) (stgit-reload)) +(defun stgit-redo (&optional arg) + "Run stg redo. +With prefix argument, run it with the --hard flag. + +See also `stgit-undo'." + (interactive "P") + (stgit-capture-output nil + (if arg + (stgit-run "redo" "--hard") + (stgit-run "redo"))) + (stgit-reload)) + (defun stgit-refresh (&optional arg) "Run stg refresh. If the index contains any changes, only refresh from index.