Added -n to push menu. Added magit-custom-options to push command.
This commit is contained in:
parent
564726a247
commit
78a3d703b0
2 changed files with 8 additions and 5 deletions
|
@ -170,7 +170,9 @@
|
|||
|
||||
(pushing
|
||||
(actions
|
||||
("p" "Push" magit-push)))
|
||||
("p" "Push" magit-push))
|
||||
(switches
|
||||
("-d" "Dry run" "-n")))
|
||||
|
||||
(pulling
|
||||
(actions
|
||||
|
|
9
magit.el
9
magit.el
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue