Function: magit-snapshot-worktree

magit-snapshot-worktree is an autoloaded, interactive and byte-compiled function defined in magit-stash.el.

Signature

(magit-snapshot-worktree &optional INCLUDE-UNTRACKED)

Documentation

Create a snapshot of unstaged changes in the working tree.

Untracked files are included according to infix arguments. One prefix argument is equivalent to "--include-untracked" while two prefix arguments are equivalent to "--all".

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-stash.el
;;;###autoload
(defun magit-snapshot-worktree (&optional include-untracked)
  "Create a snapshot of unstaged changes in the working tree.
Untracked files are included according to infix arguments.
One prefix argument is equivalent to \"--include-untracked\"
while two prefix arguments are equivalent to \"--all\"."
  (interactive (magit-snapshot-read-args))
  (magit-snapshot-save nil t include-untracked t))