Commit cb312902 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-format-patch: immediately edit cover-letter

parent e64b02da
......@@ -49,7 +49,8 @@ Updates since v2.4.1
the user would rather offer a local or a remote branch as default
completion candidate.
* Added the switch `--cover-letter' to `magit-patch-popup'.
* Added the switch `--cover-letter' to `magit-patch-popup', and taught
`magit-format-patch' to immediately open the letter in a buffer.
Fixes since v2.4.1
------------------
......
......@@ -663,7 +663,9 @@ HEAD but not from the specified commit)."
range
(format "%s~..%s" range range))))
(magit-patch-arguments)))
(magit-run-git "format-patch" range args))
(magit-call-git "format-patch" range args)
(when (member "--cover-letter" args)
(find-file (expand-file-name "0000-cover-letter.patch" (magit-toplevel)))))
;;;###autoload
(defun magit-request-pull (url start end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment