All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: git@vger.kernel.org
Cc: mingo@kernel.org
Subject: Is there some way to suppress Cc email only to stable?
Date: Mon, 9 Feb 2015 11:42:24 -0800	[thread overview]
Message-ID: <20150209194224.GA27482@linux.vnet.ibm.com> (raw)

Hello!

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?

							Thanx, Paul

             reply	other threads:[~2015-02-09 19:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-09 19:42 Paul E. McKenney [this message]
2015-02-09 20:57 ` Is there some way to suppress Cc email only to stable? Junio C Hamano
2015-02-09 21:10   ` Paul E. McKenney
2015-02-09 21:17     ` Junio C Hamano
2015-02-09 21:43       ` Paul E. McKenney
2015-02-09 21:46         ` Junio C Hamano
2015-02-09 22:01           ` Paul E. McKenney
2015-02-09 21:53 ` Jonathan Nieder
2015-02-09 23:35   ` Paul E. McKenney
2015-02-10  0:03     ` Greg KH
2015-02-10  0:35       ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150209194224.GA27482@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=git@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.