summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@fieldses.org>2007-03-18 21:37:53 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-18 21:10:03 -0700
commitabec100c3382f7d7b759f915a86e9773277263b6 (patch)
tree93de0e59a1ff169f0a65ab5d2eb96588f88d7701 /git-send-email.perl
parentd6678c28e30e836449092a2917d4b0bd6254b06c (diff)
downloadgit-abec100c3382f7d7b759f915a86e9773277263b6.tar.gz
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 6989c0260f..ae50990d08 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -65,8 +65,8 @@ Options:
Defaults to on.
--no-signed-off-cc Suppress the automatic addition of email addresses
- that appear in a Signed-off-by: line, to the cc: list.
- Note: Using this option is not recommended.
+ that appear in Signed-off-by: or Cc: lines to the cc:
+ list. Note: Using this option is not recommended.
--smtp-server If set, specifies the outgoing SMTP server to use.
Defaults to localhost.
@@ -572,8 +572,8 @@ foreach my $t (@files) {
}
} else {
$message .= $_;
- if (/^Signed-off-by: (.*)$/i && !$no_signed_off_cc) {
- my $c = $1;
+ if (/^(Signed-off-by|Cc): (.*)$/i && !$no_signed_off_cc) {
+ my $c = $2;
chomp $c;
push @cc, $c;
printf("(sob) Adding cc: %s from line '%s'\n",