Commit 68710efe authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-push-tags: move definition

parent b53ec459
......@@ -202,16 +202,6 @@ arguments are not saved."
(?t "Push tags" magit-push-tags))
:default-action 'magit-push)
;;;###autoload
(defun magit-push-tags (remote &optional args)
"Push all tags to a remote repository.
If only one remote exists, push to that. Otherwise prompt for a
remote, offering the remote configured for the current branch as
default."
(interactive (list (magit-read-remote "Push tags to remote" nil t)
magit-current-popup-args))
(magit-run-git-async "push" remote "--tags" args))
;;;###autoload
(defun magit-push (arg)
"Push the current branch to a remote repository.
......@@ -264,6 +254,16 @@ Also see option `magit-set-upstream-on-push'."
(if used-branch (format "%s:%s" branch used-branch) branch)
magit-current-popup-args)))
;;;###autoload
(defun magit-push-tags (remote &optional args)
"Push all tags to a remote repository.
If only one remote exists, push to that. Otherwise prompt for a
remote, offering the remote configured for the current branch as
default."
(interactive (list (magit-read-remote "Push tags to remote" nil t)
magit-current-popup-args))
(magit-run-git-async "push" remote "--tags" args))
;;; magit-remote.el ends soon
(provide 'magit-remote)
;; Local Variables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment