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]'.
Cc: Eric Gallager <[email protected]>
Signed-off-by: Alejandro Colomar <[email protected]>
---
Hi!
v2 changes:
- Fix comment. [Eric]
Cheers,
Alex
Range-diff against v1:
1: 0ee3f802637 ! 1: 2bd0e0f82bf contrib/: Configure git-format-patch(1) to
add To: [email protected]
@@ Commit message
* gcc-git-customization.sh: Configure git-format-patch(1) to
add
'To: [email protected]'.
+ Cc: Eric Gallager <[email protected]>
Signed-off-by: Alejandro Colomar <[email protected]>
## contrib/gcc-git-customization.sh ##
-@@ contrib/gcc-git-customization.sh: git config diff.md.xfuncname
'^\(define.*$'
+@@ contrib/gcc-git-customization.sh: git config alias.gcc-style '!f() {
+ # *.md diff=md
+ git config diff.md.xfuncname '^\(define.*$'
- # Tell git send-email where patches go.
+-# Tell git send-email where patches go.
++# Tell git-format-patch(1)/git-send-email(1) where patches go.
# ??? Maybe also set sendemail.tocmd to guess from MAINTAINERS?
+git config format.to '[email protected]'
git config sendemail.to '[email protected]'
contrib/gcc-git-customization.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh
index 54bd35ea1aa..dd59bece1dc 100755
--- a/contrib/gcc-git-customization.sh
+++ b/contrib/gcc-git-customization.sh
@@ -41,8 +41,9 @@ git config alias.gcc-style '!f() {
# *.md diff=md
git config diff.md.xfuncname '^\(define.*$'
-# Tell git send-email where patches go.
+# Tell git-format-patch(1)/git-send-email(1) 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
