Function: magit-branch-spinout
magit-branch-spinout is an interactive and natively compiled function
defined in magit-branch.el.
Signature
(magit-branch-spinout BRANCH &optional FROM)
Documentation
Create new branch from the unpushed commits.
Like magit-branch-spinoff but remain on the current branch.
If there are any uncommitted changes, then behave exactly like
magit-branch-spinoff.
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-branch.el
;;;###autoload
(defun magit-branch-spinout (branch &optional from)
"Create new branch from the unpushed commits.
Like `magit-branch-spinoff' but remain on the current branch.
If there are any uncommitted changes, then behave exactly like
`magit-branch-spinoff'."
(interactive (list (magit-read-string-ns "Spin out branch")
(car (last (magit-region-values 'commit)))))
(magit--branch-spinoff branch from nil))