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: gcc-patches@gcc.gnu.org'.

Cc: Eric Gallager <eg...@gwmail.gwu.edu>
Signed-off-by: Alejandro Colomar <a...@kernel.org>
---

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: gcc-patches@gcc.gnu.org
    @@ Commit message
                 * gcc-git-customization.sh: Configure git-format-patch(1) to 
add
                 'To: gcc-patches@gcc.gnu.org'.
     
    +    Cc: Eric Gallager <eg...@gwmail.gwu.edu>
         Signed-off-by: Alejandro Colomar <a...@kernel.org>
     
      ## 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 'gcc-patches@gcc.gnu.org'
      git config sendemail.to 'gcc-patches@gcc.gnu.org'

 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 'gcc-patches@gcc.gnu.org'
 git config sendemail.to 'gcc-patches@gcc.gnu.org'
 
 set_user=$(git config --get "user.name")
-- 
2.45.2

Attachment: signature.asc
Description: PGP signature

Reply via email to