]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: avoid duplicate In-Reply-To/References
authorStefan Agner <stefan@agner.ch>
Tue, 17 Apr 2018 21:16:30 +0000 (23:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Apr 2018 22:04:29 +0000 (07:04 +0900)
commit256be1d3f0439b397a573f90868b8d09e11afbdf
tree3670e6c1d56224a2490960901430d7e77b306c6c
parent468165c1d8a442994a825f3684528361727cd8c0
send-email: avoid duplicate In-Reply-To/References

In case a patch already has In-Reply-To or References in the header
(e.g. when the patch has been created with format-patch --thread)
git-send-email should not add another pair of those headers.
This is also not allowed according to RFC 5322 Section 3.6:
https://tools.ietf.org/html/rfc5322#section-3.6

Avoid the second pair by reading the current headers into the
appropriate variables.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl