Function: forge-add-pullreq-refspec

forge-add-pullreq-refspec is an autoloaded, interactive and byte-compiled function defined in forge-commands.el.

Signature

(forge-add-pullreq-refspec)

Documentation

Configure Git to fetch all pull-requests.

This is done by adding "+refs/pull/*/head:refs/pullreqs/*" to the value of remote.REMOTE.fetch, where REMOTE is the upstream remote.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-commands.el
;;; Options

(defcustom forge-add-pullreq-refspec t
  "Whether the pull-request refspec is added when setting up a repository.

This controls whether running `forge-pull' for the first time in
a repository also adds a refspec that fetches all pull-requests.
In repositories with huge numbers of pull-requests you might want
to not do so, in which case you should set this option to `ask'.

You can also set this to nil and later add the refspec explicitly
for a repository using the command `forge-add-pullreq-refspec'."
  :package-version '(forge . "0.2.0")
  :group 'forge
  :type '(choice (const :tag "Always add refspec" t)
                 (const :tag "Ask every time" ask)
                 (const :tag "Never add refspec" nil)))