Replace git-format-patch end-regexp "^-- " with "^$".
The regexp "^-- " was intended to mark the end
of the git-formatted patch. However, git-format-patch
can produce patches without a signature. Also often
patches are just copy-pasted from the output of 'C-x v d'.
Therefore, now an empty line marks the end of the patch
since properly formatted patches don't contain an empty line
and properly configured MUAs don't strip whitespace from patches.
Suggested by Luis Henriques <henrix@camandro.org> and
Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#72059.
(cherry picked from commit
900f135b68b4e9830eac5d7500b3175f160f6c34)
,#'mm-uu-diff-test)
(git-format-patch
"^diff --git "
- "^-- "
+ "^$"
,#'mm-uu-diff-extract
nil
,#'mm-uu-diff-test)