Function: magit-stash-worktree

magit-stash-worktree is an interactive and natively compiled function defined in magit-stash.el.

Signature

(magit-stash-worktree MESSAGE &optional INCLUDE-UNTRACKED)

Documentation

Create a stash 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

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-stash.el
;;;###autoload
(defun magit-stash-worktree (message &optional include-untracked)
  "Create a stash 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-stash-read-args))
  (magit-stash-save message nil t include-untracked t 'index))