Variable: magit-submodule-remove-trash-gitdirs

magit-submodule-remove-trash-gitdirs is a customizable variable defined in magit-submodule.el.

Value

nil

Documentation

Whether magit-submodule-remove offers to trash module gitdirs.

If this is nil, then that command does not offer to do so unless a prefix argument is used. When this is t, then it does offer to do so even without a prefix argument.

In both cases the action still has to be confirmed unless that is disabled using the option magit-no-confirm. Doing the latter and also setting this variable to t will lead to tears.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-submodule.el
(defcustom magit-submodule-remove-trash-gitdirs nil
  "Whether `magit-submodule-remove' offers to trash module gitdirs.

If this is nil, then that command does not offer to do so unless
a prefix argument is used.  When this is t, then it does offer to
do so even without a prefix argument.

In both cases the action still has to be confirmed unless that is
disabled using the option `magit-no-confirm'.  Doing the latter
and also setting this variable to t will lead to tears."
  :package-version '(magit . "2.90.0")
  :group 'magit-commands
  :type 'boolean)