{"thread":{"id":"7305","subject":"[PATCH] Make git-send-email aware of Cc: lines.","startedAt":"2007-03-19T01:37:53Z","lastAt":"2007-03-19T01:37:53Z","messageCount":1,"participants":["J. Bruce Fields"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37436","messageId":"20070319013753.GA23545@fieldses.org","threadId":"7305","inReplyTo":null,"subject":"[PATCH] Make git-send-email aware of Cc: lines.","fromName":"J. Bruce Fields","fromEmail":"bfields@fieldses.org","sentAt":"2007-03-19T01:37:53Z","receivedAt":"2007-03-19T01:37:53Z","isPatch":true,"sender":{"key":"bfields@citi.umich.edu","avatar":null},"body":"In the Linux kernel, for example, it's common to include Cc: lines\nfor cases when you want to remember to cc someone on a patch without\nnecessarily claiming they signed off on it.  Make git-send-email\naware of these.\n\nSigned-off-by: \"J. Bruce Fields\" <bfields@citi.umich.edu>\n---\n Documentation/git-send-email.txt |    3 ++-\n git-send-email.perl              |    8 ++++----\n 2 files changed, 6 insertions(+), 5 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 35b0104..ba5f3ef 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -59,7 +59,8 @@ The --cc option must be repeated for each user you want on the cc list.\n \tis not set, this will be prompted for.\n \n --no-signed-off-by-cc::\n-\tDo not add emails found in Signed-off-by: lines to the cc list.\n+\tDo not add emails found in Signed-off-by: or Cc: lines to the\n+\tcc list.\n \n --quiet::\n \tMake git-send-email less verbose.  One line per email should be\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex a71a192..e6d81f9 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -65,8 +65,8 @@ Options:\n                   Defaults to on.\n \n    --no-signed-off-cc Suppress the automatic addition of email addresses\n-                 that appear in a Signed-off-by: line, to the cc: list.\n-\t\t Note: Using this option is not recommended.\n+                 that appear in Signed-off-by: or Cc: lines to the cc:\n+                 list.  Note: Using this option is not recommended.\n \n    --smtp-server  If set, specifies the outgoing SMTP server to use.\n                   Defaults to localhost.\n@@ -562,8 +562,8 @@ foreach my $t (@files) {\n \t\t\t}\n \t\t} else {\n \t\t\t$message .=  $_;\n-\t\t\tif (/^Signed-off-by: (.*)$/i && !$no_signed_off_cc) {\n-\t\t\t\tmy $c = $1;\n+\t\t\tif (/^(Signed-off-by|Cc): (.*)$/i && !$no_signed_off_cc) {\n+\t\t\t\tmy $c = $2;\n \t\t\t\tchomp $c;\n \t\t\t\tpush @cc, $c;\n \t\t\t\tprintf(\"(sob) Adding cc: %s from line '%s'\\n\",\n-- \n1.5.0.3.31.ge47c\n"}]}