Function: magit-branch-spinout

magit-branch-spinout is an autoloaded, interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))