aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-12-01 10:46:13 -0500
committerJason Merrill <jason@redhat.com>2020-12-02 14:41:02 -0500
commit4ed34c60a818cc513239844f336fc781a8b47a24 (patch)
tree69ea5a432d44fd630984d4da7c207468164b35c1 /contrib
parent69bf1c7d5ee21392334f1982d1b40c38e103bbd4 (diff)
downloadgcc-4ed34c60a818cc513239844f336fc781a8b47a24.zip
gcc-4ed34c60a818cc513239844f336fc781a8b47a24.tar.gz
gcc-4ed34c60a818cc513239844f336fc781a8b47a24.tar.bz2
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.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gcc-git-customization.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh
index 200b81e..e7e6662 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")