Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761435AbXHRAcT (ORCPT ); Fri, 17 Aug 2007 20:32:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753747AbXHRAcK (ORCPT ); Fri, 17 Aug 2007 20:32:10 -0400 Received: from fed1rmmtai113.cox.net ([68.230.241.47]:44325 "EHLO fed1rmmtai113.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752821AbXHRAcJ (ORCPT ); Fri, 17 Aug 2007 20:32:09 -0400 X-Greylist: delayed 3243 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Aug 2007 20:32:09 EDT From: Junio C Hamano To: Joe Perches Cc: Rene Herman , git@vger.kernel.org, Alan Cox , Arjan van de Ven , Trond Myklebust , Mariusz Kozlowski , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Subject: Re: [PATCH] - git-send-email.perl References: <1186984174.10249.7.camel@localhost> <200708131933.10125.m.kozlowski@tuxland.pl> <1187026955.2688.4.camel@laptopd505.fenrus.org> <1187037445.6628.98.camel@heimdal.trondhjem.org> <1187054366.2757.0.camel@laptopd505.fenrus.org> <46C10AA8.3090505@gmail.com> <20070814102033.604c8695@the-village.bc.nu> <46C1CFFE.4000001@gmail.com> <1187110824.32555.76.camel@localhost> <7vwsvx8twx.fsf@assigned-by-dhcp.cox.net> <1187316783.822.19.camel@localhost> <1187317826.822.23.camel@localhost> <1187373278.822.100.camel@localhost> Date: Fri, 17 Aug 2007 16:38:02 -0700 Message-ID: <7vy7g9enqd.fsf@gitster.siamese.dyndns.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1743 Lines: 63 Joe Perches writes: > Here's a path to enable a command line option > that takes a string argument > > cc-cmd > > This modifies the @cc array to include whatever > output is produced by cc_cmd $patchfile > > cccmd can be stored in a config settings file > > previous versions of this patch were submitted > against an older version of git-send-email.perl ... Signed-off-by: ... > diff --git a/git-send-email.perl b/git-send-email.perl > index 69559b2..828a77a 100755 > --- a/git-send-email.perl > +++ b/git-send-email.perl > @@ -46,6 +46,9 @@ Options: > --cc Specify an initial "Cc:" list for the entire series > of emails. > > + --cc-cmd Specify a command to execute per file which adds > + per file specific cc address entries > + > --bcc Specify a list of email addresses that should be Bcc: > on all the emails. > I do not see a patch to "Documentation/git-send-email.txt" here... > @@ -652,11 +657,21 @@ foreach my $t (@files) { > } > } > close F; > + > + if (${cc_cmd} ne "") { > + my $output = `${cc_cmd} $t`; > + my @lines = split("\n", $output); > + foreach my $c (@lines) { > + push @cc, $c; > + printf("(cc-cmd) Adding cc: %s from: '%s'\n", $c, $cc_cmd) > + unless $quiet; > + } > + } > + Something like this, with appropriate error checking, perhaps? open my $cc, "${cc_cmd} $t |"; while (my $c = <$cc>) { ... } close $cc; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/