Commit 7d9d2041 authored by Kyle Meyer's avatar Kyle Meyer

magit-format-patch: find cover letter in output dir

parent cb312902
......@@ -665,7 +665,14 @@ HEAD but not from the specified commit)."
(magit-patch-arguments)))
(magit-call-git "format-patch" range args)
(when (member "--cover-letter" args)
(find-file (expand-file-name "0000-cover-letter.patch" (magit-toplevel)))))
(find-file
(expand-file-name
"0000-cover-letter.patch"
(let ((topdir (magit-toplevel)))
(or (--some (and (string-match "--output-directory=\\(.+\\)" it)
(expand-file-name (match-string 1 it) topdir))
args)
topdir))))))
;;;###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