Skip to content

Commit

Permalink
Add gitsum-push, bound to P
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Feb 6, 2008
1 parent b802c8d commit a860615
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gitsum.el
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a860615

Please sign in to comment.