Function: magit-insert-staged-changes
magit-insert-staged-changes is a natively compiled function defined in
magit-diff.el.
Signature
(magit-insert-staged-changes)
Documentation
Insert section showing staged changes.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(defun magit-insert-staged-changes ()
"Insert section showing staged changes."
;; Avoid listing all files as deleted when visiting a bare repo.
(unless (magit-bare-repo-p)
(magit-insert-section (staged)
(magit-insert-heading t "Staged changes")
(magit--insert-diff nil
"diff" "--cached" magit-buffer-diff-args "--no-prefix"
"--" magit-buffer-diff-files))))