From 670f7f2428cbae7346339a5af2a0d31815103172 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 25 Mar 2014 17:47:05 -0400 Subject: Add push all to magit pushing menu --- lisp/init-git.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp/init-git.el') 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 -- cgit v1.2.3