Function: magit-stash-format-patch

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

Signature

(magit-stash-format-patch STASH)

Documentation

Create a patch from STASH.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-stash.el
;;;###autoload
(defun magit-stash-format-patch (stash)
  "Create a patch from STASH."
  (interactive (list (magit-read-stash "Create patch from stash")))
  (with-temp-file (magit-rev-format "0001-%f.patch" stash)
    (magit-git-insert "stash" "show" "-p" stash))
  (magit-refresh))