Variable: magit-patch-save-arguments

magit-patch-save-arguments is a customizable variable defined in magit-patch.el.

Value

(exclude "--stat")

Documentation

Control arguments used by the command magit-patch-save.

magit-patch-save (which see) saves a diff for the changes shown in the current buffer in a patch file. It may use the same arguments as used in the buffer or a subset thereof, or a constant list of arguments, depending on this option and the prefix argument.

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

Source Code

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

(defcustom magit-patch-save-arguments '(exclude "--stat")
  "Control arguments used by the command `magit-patch-save'.

`magit-patch-save' (which see) saves a diff for the changes
shown in the current buffer in a patch file.  It may use the
same arguments as used in the buffer or a subset thereof, or
a constant list of arguments, depending on this option and
the prefix argument."
  :package-version '(magit . "2.12.0")
  :group 'magit-diff
  :type '(choice (const :tag "Use buffer arguments" buffer)
                 (cons :tag "Use buffer arguments except"
                       (const :format "" exclude)
                       (repeat :format "%v%i\n"
                               (string :tag "Argument")))
                 (repeat :tag "Use constant arguments"
                         (string :tag "Argument"))))