(magit-stage-modified 'all)
stages all modified files, but only after confirming it with the user with the message Stage all changes? (y or n)
.
The function is defined as follows:
(defun magit-stage-modified (&optional all)
"Stage all changes to files modified in the worktree.
Stage all new content of tracked files and remove tracked files
that no longer exist in the working tree from the index also.
With a prefix argument also stage previously untracked (but not
ignored) files."
(interactive "P")
(when (magit-anything-staged-p)
(magit-confirm 'stage-all-changes))
(magit-with-toplevel
(magit-stage-1 (if all "--all" "-u"))))
There does not appear to be any guard that I can set that will allow me to stage all modified files without a confirmation.
Is there a way to achieve this otherwise?