Variable: magit-remote-add-set-remote.pushDefault

magit-remote-add-set-remote.pushDefault is a customizable variable defined in magit-remote.el.

Value

ask-if-unset

Documentation

Whether to set the value of remote.pushDefault after adding a remote.

If ask, then always ask. If ask-if-unset, then ask, but only if the variable isn't set already. If nil, then don't ever set. If the value is a string, then set without asking, provided that the name of the added remote is equal to that string and the variable isn't already set.

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

Source Code

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

(defcustom magit-remote-add-set-remote.pushDefault 'ask-if-unset
  "Whether to set the value of `remote.pushDefault' after adding a remote.

If `ask', then always ask.  If `ask-if-unset', then ask, but only
if the variable isn't set already.  If nil, then don't ever set.
If the value is a string, then set without asking, provided that
the name of the added remote is equal to that string and the
variable isn't already set."
  :package-version '(magit . "2.4.0")
  :group 'magit-commands
  :type '(choice (const  :tag "Ask if unset" ask-if-unset)
                 (const  :tag "Always ask" ask)
                 (string :tag "Set if named")
                 (const  :tag "Don't set")))