Added fetch-other and removed useless fetch option.

This commit is contained in:
Phil Jackson 2010-09-22 14:55:14 +01:00
parent 34025078c5
commit 2123b72ec5
2 changed files with 8 additions and 3 deletions

View file

@ -49,9 +49,9 @@
(fetching (fetching
(man-page "git-fetch") (man-page "git-fetch")
(actions (actions
("f" "Fetch" magit-fetch)) ("f" "Current" magit-fetch-current)
(switches ("a" "All" magit-remote-update)
("-a" "All" "--all"))) ("o" "Other" magit-fetch)))
(pushing (pushing
(man-page "git-push") (man-page "git-push")

View file

@ -3080,6 +3080,11 @@ Uncomitted changes in both working tree and staging area are lost.
(interactive) (interactive)
(magit-run-git-async "fetch" (magit-read-remote))) (magit-run-git-async "fetch" (magit-read-remote)))
(magit-define-command fetch-current ()
"Run fetch."
(interactive)
(magit-run-git-async "fetch"))
(magit-define-command remote-update () (magit-define-command remote-update ()
"Update all remotes." "Update all remotes."
(interactive) (interactive)