public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5679] git: Tell git send-email where to send patches.
@ 2020-12-02 19:41 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2020-12-02 19:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4ed34c60a818cc513239844f336fc781a8b47a24
commit r11-5679-g4ed34c60a818cc513239844f336fc781a8b47a24
Author: Jason Merrill <jason@redhat.com>
Date: Tue Dec 1 10:46:13 2020 -0500
git: Tell git send-email where to send patches.
I've been using
git send-email --annotate --suppress-from --to=gcc-patches@gcc.gnu.org \
${@:-HEAD^} ':!*/ChangeLog' ':!*configure'
for sending most patches, but it occurs to me that it would be useful to put
the To: address in the configury.
If someone were feeling ambitious, they could write a script to analyze a
patch and add the relevant maintainers to To: or CC:.
contrib/ChangeLog:
* gcc-git-customization.sh: Configure sendemail.to.
Diff:
---
contrib/gcc-git-customization.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh
index 200b81eec31..e7e66623786 100755
--- a/contrib/gcc-git-customization.sh
+++ b/contrib/gcc-git-customization.sh
@@ -35,6 +35,10 @@ git config alias.gcc-commit-mklog '!f() { GCC_FORCE_MKLOG=1 git commit "$@"; };
# *.md diff=md
git config diff.md.xfuncname '^\(define.*$'
+# Tell git send-email where patches go.
+# ??? Maybe also set sendemail.tocmd to guess from MAINTAINERS?
+git config sendemail.to 'gcc-patches@gcc.gnu.org'
+
set_user=$(git config --get "user.name")
set_email=$(git config --get "user.email")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-02 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 19:41 [gcc r11-5679] git: Tell git send-email where to send patches Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).