Variable: magit-direct-use-buffer-arguments
magit-direct-use-buffer-arguments is a customizable variable defined
in magit-mode.el.
Value
selected
Documentation
Whether certain commands reuse arguments active in relevant buffer.
This affects certain commands such as magit-show-commit that
are suffixes of the diff or log transient prefix commands, but
only if they are invoked directly, i.e., *not* as a suffix.
Valid values are:
always: Always use the set of arguments that is currently
active in the respective buffer, provided that buffer exists
of course.
selected: Use the set of arguments from the respective
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 respective buffer,
but only if it is the current buffer.
never: Never use the set of arguments from the respective
buffer.
For more information see info node (magit)Transient Arguments and Buffer Variables.
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-mode.el
(defcustom magit-direct-use-buffer-arguments 'selected
"Whether certain commands reuse arguments active in relevant buffer.
This affects certain commands such as `magit-show-commit' that
are suffixes of the diff or log transient prefix commands, but
only if they are invoked directly, i.e., *not* as a suffix.
Valid values are:
`always': Always use the set of arguments that is currently
active in the respective buffer, provided that buffer exists
of course.
`selected': Use the set of arguments from the respective
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 respective buffer,
but only if it is the current buffer.
`never': Never use the set of arguments from the respective
buffer.
For more information see info node `(magit)Transient Arguments
and Buffer Variables'."
:package-version '(magit . "3.0.0")
:group 'magit-buffers
:group 'magit-commands
:group 'magit-diff
:group 'magit-log
: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)))