@matheusbsbs / matheus-bagliano / commits / abec100c33
Fork 0

Make git-send-email aware of Cc: lines.

In the Linux kernel, for example, it's common to include Cc: lines for cases when you want to remember to cc someone on a patch without necessarily claiming they signed off on it. Make git-send-email aware of these. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>

J. Bruce Fields committed Mar 18, 2007 at 21:37 UTC abec100c3382f7d7b759f915a86e9773277263b6
2 files changed +6 -5
Documentation/git-send-email.txt
+2 -1
@@ -60,7 +60,8 @@ The --cc option must be repeated for each user you want on the cc list.
60 is not set, this will be prompted for.
61
62 --no-signed-off-by-cc::
63 - Do not add emails found in Signed-off-by: lines to the cc list.
63 + Do not add emails found in Signed-off-by: or Cc: lines to the
64 + cc list.
65
66 --quiet::
67 Make git-send-email less verbose. One line per email should be
git-send-email.perl
+4 -4
@@ -65,8 +65,8 @@ Options:
65 Defaults to on.
66
67 --no-signed-off-cc Suppress the automatic addition of email addresses
68 - that appear in a Signed-off-by: line, to the cc: list.
69 - Note: Using this option is not recommended.
68 + that appear in Signed-off-by: or Cc: lines to the cc:
69 + list. Note: Using this option is not recommended.
70
71 --smtp-server If set, specifies the outgoing SMTP server to use.
72 Defaults to localhost.
@@ -572,8 +572,8 @@ foreach my $t (@files) {
572 }
573 } else {
574 $message .= $_;
575 - if (/^Signed-off-by: (.*)$/i && !$no_signed_off_cc) {
576 - my $c = $1;
575 + if (/^(Signed-off-by|Cc): (.*)$/i && !$no_signed_off_cc) {
576 + my $c = $2;
577 chomp $c;
578 push @cc, $c;
579 printf("(sob) Adding cc: %s from line '%s'\n",