Variable: vc-dir-allow-mass-mark-changes
vc-dir-allow-mass-mark-changes is a customizable variable defined in
vc-dir.el.gz.
Value
ask
Documentation
If non-nil, VC-Dir commands may mark or unmark many items at once.
When a directory in VC-Dir is marked, then for most VCS, this means that
all files within it are implicitly marked as well.
For consistency, the mark and unmark commands (principally m (vc-dir-mark) and u (vc-dir-unmark)) will
not explicitly mark or unmark entries if doing so would result in a
situation where both a directory and a file or directory within it are
both marked.
With the default value of this variable, ask, if you attempt to mark
or unmark a particular item and doing so consistent with these
restrictions would require other items to be marked or unmarked too,
Emacs will prompt you to confirm that you do mean for the other items to
be marked or unmarked.
If this variable is nil, the commands will refuse to do anything if they would need to mark or unmark other entries too. If this variable is any other non-nil value, the commands will always proceed to mark and unmark other entries, without asking.
This variable was added, or its default value changed, in Emacs 31.1.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defcustom vc-dir-allow-mass-mark-changes 'ask
"If non-nil, VC-Dir commands may mark or unmark many items at once.
When a directory in VC-Dir is marked, then for most VCS, this means that
all files within it are implicitly marked as well.
For consistency, the mark and unmark commands \
(principally \\<vc-dir-mode-map>\\[vc-dir-mark] and \\[vc-dir-unmark]) will
not explicitly mark or unmark entries if doing so would result in a
situation where both a directory and a file or directory within it are
both marked.
With the default value of this variable, `ask', if you attempt to mark
or unmark a particular item and doing so consistent with these
restrictions would require other items to be marked or unmarked too,
Emacs will prompt you to confirm that you do mean for the other items to
be marked or unmarked.
If this variable is nil, the commands will refuse to do anything if they
would need to mark or unmark other entries too.
If this variable is any other non-nil value, the commands will always
proceed to mark and unmark other entries, without asking."
:type '(choice (const :tag "Don't allow" nil)
(const :tag "Prompt to allow" ask)
(const :tag "Allow without prompting" t))
:group 'vc
:version "31.1")