Commit 7a1f57bb authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-remote-{add,remove,rename}: improve doc-strings

Remove Git usage (that's not really useful) and improve wording.
parent 2e9f833f
......@@ -69,23 +69,20 @@ t ask if --set-upstream should be used.
(defun magit-remote-add (remote url)
"Add the REMOTE and fetch it.
\n(git remote add -f REMOTE URL)."
"Add a remote named REMOTE and fetch it."
(interactive (list (magit-read-string "Remote name")
(magit-read-string "Remote url")))
(magit-run-git-async "remote" "add" "-f" remote url))
(defun magit-remote-remove (remote)
"Delete the REMOTE.
\n(git remote rm REMOTE)."
"Delete the remote named REMOTE."
(interactive (list (magit-read-remote "Delete remote")))
(magit-run-git "remote" "rm" remote))
(defun magit-remote-rename (old new)
"Rename remote OLD to NEW.
\n(git remote rename OLD NEW)."
"Rename the remote named OLD to NEW."
(let ((remote (magit-read-remote "Rename remote")))
(list remote (magit-read-string (format "Rename remote '%s' to" remote)))))
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