Variable: magit-branch-read-upstream-first

magit-branch-read-upstream-first is a customizable variable defined in magit-branch.el.

Value

t

Documentation

Whether to read upstream before name of new branch when creating a branch.

nil Read the branch name first.
t Read the upstream first.
fallback Read the upstream first, but if it turns out that the chosen
           value is not a valid upstream (because it cannot be resolved
           as an existing revision), then treat it as the name of the
           new branch and continue by reading the upstream next.

This variable was added, or its default value changed, in magit version 2.2.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-branch.el
;;; Options

(defcustom magit-branch-read-upstream-first t
  "Whether to read upstream before name of new branch when creating a branch.

`nil'      Read the branch name first.
`t'        Read the upstream first.
`fallback' Read the upstream first, but if it turns out that the chosen
           value is not a valid upstream (because it cannot be resolved
           as an existing revision), then treat it as the name of the
           new branch and continue by reading the upstream next."
  :package-version '(magit . "2.2.0")
  :group 'magit-commands
  :type '(choice (const :tag "Read branch name first" nil)
                 (const :tag "Read upstream first" t)
                 (const :tag "Read upstream first, with fallback" fallback)))