[PATCH] git-send-email: add a new sendemail.cc configuration variable
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Apr 27, 2008, 12:14 UTC
- Message-ID
- <20080427121458.GU4012@genesis.frugalware.org>
- In-Reply-To
- <alpine.DEB.1.00.0804271252200.16320@eeepc-johanness>
Some projects prefer to always CC patches to a given mailing list. In these cases, it's handy to configure that address once.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> ---
On Sun, Apr 27, 2008 at 12:53:34PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 6 quoted lines
> > Yes and no. :-) I first searched for a --cc option in send-email, > > then > > realized that only format-patch has one. > > You are completely correct, sorry. Hmm. I would have preferred > send-email inserting that header, oh well.
Heh, no. git-send-email has a --cc option as well, just it was not configurable. Here is a one-liner which does the trick.
git-send-email.perl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl index 9e568bf..cb05cf5 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -203,6 +203,7 @@ my %config_settings = ( "smtpuser" => \$smtp_authuser, "smtppass" => \$smtp_authpass, "to" => \@to, + "cc" => \@initial_cc, "cccmd" => \$cc_cmd, "aliasfiletype" => \$aliasfiletype, "bcc" => \@bcclist,
-- 1.5.5.1