diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-03-25 17:47:05 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-03-25 17:47:05 -0400 |
commit | 670f7f2428cbae7346339a5af2a0d31815103172 (patch) | |
tree | b5df7fe404d1577274aaf6ada4c98621f4315822 /lisp | |
parent | b222d6cd9fa6c3ba6edd565d78ca707e633b7e88 (diff) | |
download | emacs.d-670f7f2428cbae7346339a5af2a0d31815103172.tar.gz |
Add push all to magit pushing menu
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-git.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 8b3fe99..65943d3 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -13,11 +13,18 @@ Useful for non-source code repos (e.g., Org mode note files)." (interactive) (magit-run-git "commit" "--all" "--message=auto")) +(defun km/magit-push-all () + "Push all branches." + (interactive) + (let ((remote (magit-read-remote "Remote"))) + (magit-run-git-async "push" "-v" remote "--all"))) (eval-after-load 'magit '(progn (magit-key-mode-insert-action 'committing "u" "Auto commit" 'km/magit-auto-commit) + (magit-key-mode-insert-action 'pushing + "a" "Push all" 'km/magit-push-all) (diminish 'magit-auto-revert-mode))) ;; http://whattheemacsd.com/setup-magit.el-01.html |