Function: magit-stash-branch
magit-stash-branch is an interactive and natively compiled function
defined in magit-stash.el.
Signature
(magit-stash-branch STASH BRANCH)
Documentation
Create and checkout a new BRANCH from an existing STASH.
The new branch starts at the commit that was current when the stash was created. If the stash applies cleanly, then drop it.
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-branch (stash branch)
"Create and checkout a new BRANCH from an existing STASH.
The new branch starts at the commit that was current when the
stash was created. If the stash applies cleanly, then drop it."
(interactive (list (magit-read-stash "Branch stash")
(magit-read-string-ns "Branch name")))
(magit-run-git "stash" "branch" branch stash))