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

Re: [PATCH] git-send-email: Cc more people

From
Steven Rostedt <rostedt@goodmis.org>
Date
Apr 18, 2018, 14:33 UTC
Message-ID
<20180418103339.30bae9bc@gandalf.local.home>
In-Reply-To
<20180418140503.GD27475@bombadil.infradead.org>

On Wed, 18 Apr 2018 07:05:03 -0700 Matthew Wilcox <willy@infradead.org> wrote:

Show 7 quoted lines
> From: Matthew Wilcox <mawilcox@microsoft.com>
> 
> Several of my colleagues (and myself) have expressed surprise and
> annoyance that git-send-email doesn't automatically pick up people who
> are listed in patches as Reported-by: or Reviewed-by: or ... many other
> tags that would seem (to us) to indicate that person might be interested.
> This patch to git-send-email tries to pick up all Foo-by: tags.
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

Note, this is one of the reasons I still use quilt to send my email. I've modified my quilt scripts to do what Matthew does here below.

-- Steve
Show 16 quoted lines
> 
> Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
> 
> diff --git a/git-send-email.perl b/git-send-email.perl
> index 2fa7818ca..926815329 100755
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -1665,7 +1665,7 @@ foreach my $t (@files) {
>  	# Now parse the message body
>  	while(<$fh>) {
>  		$message .=  $_;
> -		if (/^(Signed-off-by|Cc): (.*)/i) {
> +		if (/^([A-Z-a-z]*-by|Cc): (.*)/i) {
>  			chomp;
>  			my ($what, $c) = ($1, $2);
>  			# strip garbage for the address we'll use:
Previous: Matthew WilcoxNext: Mathieu Desnoyers
Message 2 of 9 in “git-send-email: Cc more people”
  1. git-send-email: Cc more peopleMatthew Wilcox, Apr 18, 2018
  2. Steven RostedtApr 18, 2018
  3. Mathieu DesnoyersApr 18, 2018
  4. Ævar Arnfjörð BjarmasonApr 18, 2018
  5. Junio C HamanoApr 18, 2018
  6. Matthew WilcoxApr 19, 2018
  7. Mathieu DesnoyersApr 19, 2018
  8. Junio C HamanoApr 20, 2018
  9. Mathieu DesnoyersApr 20, 2018

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.