Variable: magit-status-use-buffer-arguments
magit-status-use-buffer-arguments is a customizable variable defined
in magit-status.el.
Value
selected
Documentation
Whether magit-status reuses arguments when the buffer already exists.
This option has no effect when merely refreshing the status
buffer using magit-refresh.
Valid values are:
always: Always use the set of arguments that is currently
active in the status buffer, provided that buffer exists
of course.
selected: Use the set of arguments from the status
buffer, but only if it is displayed in a window of the
current frame. This is the default.
current: Use the set of arguments from the status buffer,
but only if it is the current buffer.
never: Never use the set of arguments from the status
buffer.
This variable was added, or its default value changed, in magit version 3.0.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-status.el
(defcustom magit-status-use-buffer-arguments 'selected
"Whether `magit-status' reuses arguments when the buffer already exists.
This option has no effect when merely refreshing the status
buffer using `magit-refresh'.
Valid values are:
`always': Always use the set of arguments that is currently
active in the status buffer, provided that buffer exists
of course.
`selected': Use the set of arguments from the status
buffer, but only if it is displayed in a window of the
current frame. This is the default.
`current': Use the set of arguments from the status buffer,
but only if it is the current buffer.
`never': Never use the set of arguments from the status
buffer."
:package-version '(magit . "3.0.0")
:group 'magit-buffers
:group 'magit-commands
:type '(choice
(const :tag "Always use args from buffer" always)
(const :tag "Use args from buffer if displayed in frame" selected)
(const :tag "Use args from buffer if it is current" current)
(const :tag "Never use args from buffer" never)))