Function: vc-dir-root-next-action
vc-dir-root-next-action is an interactive and byte-compiled function
defined in vc-dir.el.gz.
Signature
(vc-dir-root-next-action)
Documentation
Like vc-next-action but for all files shown in the VC-Dir buffer.
This command ignores VC-Dir marks and the position of point. When the VC-Dir's root directory is the repository root (as it usually is), this command is useful to check in all local changes at once.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defun vc-dir-root-next-action ()
"Like `vc-next-action' but for all files shown in the VC-Dir buffer.
This command ignores VC-Dir marks and the position of point.
When the VC-Dir's root directory is the repository root (as it usually
is), this command is useful to check in all local changes at once."
(interactive)
(let* ((only-files-list
(cl-loop for crt = (ewoc-nth vc-ewoc 0)
then (ewoc-next vc-ewoc crt)
while crt
for data = (ewoc-data crt)
unless (vc-dir-fileinfo->directory data) collect
(cons (expand-file-name (vc-dir-fileinfo->name data))
(vc-dir-fileinfo->state data))))
(vc-buffer-overriding-fileset
`(,vc-dir-backend
(,default-directory)
. ,(vc-dir--only-files-state-and-model only-files-list))))
(vc-next-action nil)))