Joe Perches <[email protected]> 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] - git-send-email.perl
- From: Joe Perches <[email protected]>
- Re: [PATCH] - git-send-email.perl
- References:
- [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Joe Perches <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Mariusz Kozlowski <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Trond Myklebust <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Rene Herman <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Alan Cox <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Rene Herman <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Joe Perches <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Junio C Hamano <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Joe Perches <[email protected]>
- Re: [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- From: Joe Perches <[email protected]>
- [PATCH] - git-send-email.perl
- From: Joe Perches <[email protected]>
- [PATCH] [1/2many] - FInd the maintainer(s) for a patch - scripts/get_maintainer.pl
- Prev by Date: [PATCH 3/3] dma: use dma_flags_set_dmaflush in ib_umem_get
- Next by Date: [PATCH 0/6] UML - Code cleanups for 2.6.24
- Previous by thread: [PATCH] - git-send-email.perl
- Next by thread: Re: [PATCH] - git-send-email.perl
- Index(es):