diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-06 16:38:25 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-06 16:44:03 +0100 |
commit | a860615256c00f0574961d6771a3324359776c6d (patch) | |
tree | 3374d80573d27b536f18f8a2257e0cc297b96670 | |
parent | b802c8d77fc395139973afaaa030f44f3036240b (diff) | |
download | gitsum-a860615256c00f0574961d6771a3324359776c6d.tar.gz gitsum-a860615256c00f0574961d6771a3324359776c6d.tar.xz gitsum-a860615256c00f0574961d6771a3324359776c6d.zip |
Add gitsum-push, bound to P
-rw-r--r-- | gitsum.el | 7 |
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) |