Commit 0b6acdfd authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-fetch{,-current,-all}: improve doc-strings

parent df86fc6f
......@@ -86,8 +86,9 @@
(defun magit-fetch-current (&optional args)
"Fetch for the default remote.
If there is no default remote, ask for one."
"Fetch from the upstream repository of the current branch.
If `HEAD' is detached or if the upstream is not configured,
then first read the branch to be pushed."
(interactive (list magit-current-popup-args))
(magit-fetch (or (magit-get-remote)
(magit-read-remote "Fetch remote"))
......@@ -95,14 +96,14 @@ If there is no default remote, ask for one."
(defun magit-fetch (remote &optional args)
"Fetch from REMOTE."
"Fetch from another repository."
(interactive (list (magit-read-remote "Fetch remote")
(magit-run-git-async "fetch" remote args))
(defun magit-fetch-all (&optional args)
"Update all remotes."
"Fetch from another repository."
(interactive (list magit-current-popup-args))
(magit-run-git-async "remote" "update" args))
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