Function: magit-unstage-1
magit-unstage-1 is a natively compiled function defined in
magit-apply.el.
Signature
(magit-unstage-1 FILES)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-apply.el
(defun magit-unstage-1 (files)
(magit-run-before-change-functions files "unstage")
(if (magit-no-commit-p)
(magit-run-git "rm" "--cached" "--" files)
(magit-run-git "reset" "HEAD" "--" files))
(magit-run-after-apply-functions files "unstage"))