about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-02-06 16:38:25 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2008-02-06 16:44:03 +0100
commita860615256c00f0574961d6771a3324359776c6d (patch)
tree3374d80573d27b536f18f8a2257e0cc297b96670
parentb802c8d77fc395139973afaaa030f44f3036240b (diff)
downloadgitsum-a860615256c00f0574961d6771a3324359776c6d.tar.gz
gitsum-a860615256c00f0574961d6771a3324359776c6d.tar.xz
gitsum-a860615256c00f0574961d6771a3324359776c6d.zip
Add gitsum-push, bound to P
-rw-r--r--gitsum.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitsum.el b/gitsum.el
index d13d623..f62687c 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -14,6 +14,7 @@
 (easy-mmode-defmap gitsum-diff-mode-shared-map
   '(("c" . gitsum-commit)
     ("g" . gitsum-refresh)
+    ("P" . gitsum-push)
     ("R" . gitsum-revert)
     ("s" . gitsum-switch-to-git-status)
     ("q" . gitsum-kill-buffer)
@@ -80,6 +81,12 @@ A numeric argument serves as a repeat count."
       (goto-char (point-min)))
     (log-edit 'gitsum-do-commit nil nil buffer)))
 
+(defun gitsum-push ()
+  "Push the current repository."
+  (interactive)
+  (let ((args (read-string "Shell command: " "git push ")))
+    (shell-command args)))
+
 (defun gitsum-revert ()
   "Revert the active patches in the working directory."
   (interactive)