Just like we already do for git-send-email(1). In some cases, patches are prepared with git-format-patch(1), but are sent with a different program, or some flags to git-send-email(1) may accidentally inhibit the configuration. By adding the TO in the email file, we make sure that gcc-patches@ will receive the patch.
contrib/ChangeLog:
* gcc-git-customization.sh: Configure git-format-patch(1) to add
'To: [email protected]'.
Signed-off-by: Alejandro Colomar <[email protected]>
---
contrib/gcc-git-customization.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh
index 54bd35ea1aa..1cd1b4472f0 100755
--- a/contrib/gcc-git-customization.sh
+++ b/contrib/gcc-git-customization.sh
@@ -43,6 +43,7 @@ git config diff.md.xfuncname '^\(define.*$'
# Tell git send-email where patches go.
# ??? Maybe also set sendemail.tocmd to guess from MAINTAINERS?
+git config format.to '[email protected]'
git config sendemail.to '[email protected]'
set_user=$(git config --get "user.name")
--
2.45.2
signature.asc
Description: PGP signature
