Function: magit-fetch-from-pushremote
magit-fetch-from-pushremote is an autoloaded, interactive and
byte-compiled function defined in magit-fetch.el.
Signature
(magit-fetch-from-pushremote ARG1)
Documentation
Fetch from the current push-remote.
With a prefix argument or when the push-remote is either not configured or unusable, then let the user first configure the push-remote.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-fetch.el
;;;###autoload(autoload 'magit-fetch-from-pushremote "magit-fetch" nil t)
(transient-define-suffix magit-fetch-from-pushremote (args)
"Fetch from the current push-remote.
With a prefix argument or when the push-remote is either not
configured or unusable, then let the user first configure the
push-remote."
:description #'magit-fetch--pushremote-description
(interactive (list (magit-fetch-arguments)))
(let ((remote (magit-get-push-remote)))
(when (or current-prefix-arg
(not (member remote (magit-list-remotes))))
(let ((var (magit--push-remote-variable)))
(setq remote
(magit-read-remote (format "Set %s and fetch from there" var)))
(magit-set remote var)))
(magit-git-fetch remote args)))