Function: magit-insert-stash-untracked

magit-insert-stash-untracked is a byte-compiled function defined in magit-stash.el.

Signature

(magit-insert-stash-untracked)

Documentation

Insert section showing the untracked files commit of the stash.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-stash.el
(defun magit-insert-stash-untracked ()
  "Insert section showing the untracked files commit of the stash."
  (let ((stash magit-buffer-revision)
        (rev (concat magit-buffer-revision "^3")))
    (when (magit-rev-verify rev)
      (magit-stash-insert-section (format "%s^3" stash)
                                  (format "%s^..%s^3" stash stash)
                                  "Untracked files"
                                  (magit-git-items "ls-tree" "-z" "--name-only"
                                                   "-r" "--full-tree" rev)))))