git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is there some way to suppress Cc email only to stable?

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2015, 20:57 UTC
Message-ID
<xmqq386eby6w.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150209194224.GA27482@linux.vnet.ibm.com>
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com> writes:
Show 26 quoted lines
> I need to be able to put the following Cc in a git commit:
>
> Cc: <stable@vger.kernel.org>
>
> Yet I cannot allow git-send-email to actually send email to that address,
> lest I get an automated nastygram in response.  I found the --to-cmd=
> option to git-send-email, but it looks to only add email addresses, never
> delete them.  I also found the --suppress-cc= option to git-send-email,
> but it appears to suppress all Cc emails, not just selected ones.
>
> One approach that occurred to me is to hand-edit the files produced
> by git-format-patch, removing stable@vger.kernel.org entirely prior to
> using git-send-email.  However, this is a bit error-prone.  Yes, I could
> script it, but with my luck, I will eventually end up having my script
> mangle some patch, for example to the Linux kernel's MAINTAINERS file.
> Furthermore, this approach means that people reviewing the patches
> cannot see the Cc stable entries (though I could presumably comment them
> out somehow).
>
> Another approach is to add the stable Ccs just before doing the pull
> request, by my upstream maintainer is not fond of that approach.  Nor am
> I, as it would be all to easy to forget to add the stable Ccs.  Or to
> get them wrong.
>
> I can't be the only person wanting to do something like this.  So is
> there some git option that I am missing here?

No, I do not think we have a way to blacklist certain recipient addresses from getting passed to the MTA, and I do not object to addition of such a mechanism if there is a valid need to do so.

It feels a bit too convoluted to say "Cc: to this address" in the log message and then "nonono, I do not want to send there", though. Why do you want to have Cc: in the log message if you do not want to send e-mail to that address in the first place? Allowing the behaviour you are asking for would mean that those who see that the commit appeared on a branch would not be able to assume that the patch has already been sent to the stable review address, no?

Previous: Paul E. McKenneyNext: Paul E. McKenney
Message 2 of 11 in “Is there some way to suppress Cc email only to stable?”
  1. Paul E. McKenneyFeb 9, 2015
  2. Junio C HamanoFeb 9, 2015
  3. Paul E. McKenneyFeb 9, 2015
  4. Junio C HamanoFeb 9, 2015
  5. Paul E. McKenneyFeb 9, 2015
  6. Junio C HamanoFeb 9, 2015
  7. Paul E. McKenneyFeb 9, 2015
  8. Jonathan NiederFeb 9, 2015
  9. Paul E. McKenneyFeb 9, 2015
  10. Greg KHFeb 10, 2015
  11. Paul E. McKenneyFeb 10, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.