Function: magit-stage-1

magit-stage-1 is a natively compiled function defined in magit-apply.el.

Signature

(magit-stage-1 ARG &optional FILES)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-apply.el
(defun magit-stage-1 (arg &optional files)
  (magit-run-before-change-functions files "stage")
  (magit-run-git "add" arg (if files (cons "--" files) "."))
  (when magit-auto-revert-mode
    (mapc #'magit-turn-on-auto-revert-mode-if-desired files))
  (magit-run-after-apply-functions files "stage"))