Added -n to push menu. Added magit-custom-options to push command.

This commit is contained in:
Phil Jackson 2010-09-01 23:50:25 +01:00
parent 564726a247
commit 78a3d703b0
2 changed files with 8 additions and 5 deletions

View file

@ -170,7 +170,9 @@
(pushing
(actions
("p" "Push" magit-push)))
("p" "Push" magit-push))
(switches
("-d" "Dry run" "-n")))
(pulling
(actions

View file

@ -2967,10 +2967,11 @@ typing and automatically refreshes the status buffer."
(if (and (not branch-remote)
(not current-prefix-arg))
(magit-set push-remote "branch" branch "remote"))
(magit-run-git-async "push" "-v" push-remote
(if ref-branch
(format "%s:%s" branch ref-branch)
branch))
(apply 'magit-run-git-async "push" "-v" push-remote
(if ref-branch
(format "%s:%s" branch ref-branch)
branch)
magit-custom-options)
;; Although git will automatically set up the remote,
;; it doesn't set up the branch to merge (at least as of Git 1.6.6.1),
;; so we have to do that manually.