On Wed, Nov 13, 2024 at 6:48 AM Alejandro Colomar <a...@kernel.org> wrote: > > Hi Eric, > > On Thu, Oct 17, 2024 at 03:20:11PM GMT, Eric Gallager wrote: > > On Thu, Oct 17, 2024 at 10:54 AM Alejandro Colomar <a...@kernel.org> wrote: > > > > > > 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 > > > > > > > LGTM, but my approval doesn't actually mean anything, so... > > Thanks! May I use Acked-by: you?
I mean, sure, but that isn't really something I've seen used in GCC, so I'm not quite sure what the point of it would be... > And who should approve this patch? Hm, well `git blame` says that Jason Merill was the last person to touch these lines in r11-5679-g4ed34c60a818cc: https://gcc.gnu.org/git/?p=gcc.git;a=commit;f=contrib/gcc-git-customization.sh;h=4ed34c60a818cc513239844f336fc781a8b47a24 ...so maybe him? > > Have a lovely day! > Alex > > -- > <https://www.alejandro-colomar.es/>