mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/gnus/mm-uu.el (mm-uu-type-alist): Fix end-regexp of git-format-patch.
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.
This commit is contained in:
parent
e64a34e62b
commit
900f135b68
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ This can be either \"inline\" or \"attachment\".")
|
|||
,#'mm-uu-diff-test)
|
||||
(git-format-patch
|
||||
"^diff --git "
|
||||
"^-- "
|
||||
"^$"
|
||||
,#'mm-uu-diff-extract
|
||||
nil
|
||||
,#'mm-uu-diff-test)
|
||||
|
|
|
|||
Loading…
Reference in a new issue