Commit ba7a0e72 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-remote-remove: move definition

parent 7a1f57bb
......@@ -74,12 +74,6 @@ t ask if --set-upstream should be used.
(magit-read-string "Remote url")))
(magit-run-git-async "remote" "add" "-f" remote url))
;;;###autoload
(defun magit-remote-remove (remote)
"Delete the remote named REMOTE."
(interactive (list (magit-read-remote "Delete remote")))
(magit-run-git "remote" "rm" remote))
;;;###autoload
(defun magit-remote-rename (old new)
"Rename the remote named OLD to NEW."
......@@ -89,6 +83,12 @@ t ask if --set-upstream should be used.
(unless (string= old new)
(magit-run-git "remote" "rename" old new)))
;;;###autoload
(defun magit-remote-remove (remote)
"Delete the remote named REMOTE."
(interactive (list (magit-read-remote "Delete remote")))
(magit-run-git "remote" "rm" remote))
;;; Fetch
(magit-define-popup magit-fetch-popup
......
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