aboutsummaryrefslogtreecommitdiff
path: root/t/t4014-format-patch.sh
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-19 02:40:35 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-19 21:49:38 -0800
commit736cc67dd7f4f8004215e24f876178e6f34c191d (patch)
tree53585ea3f7a641b60ad4993d9d0f8513e7494bdd /t/t4014-format-patch.sh
parent3ee79d9f59684778151804c02cc6ad155b30efde (diff)
downloadgit-736cc67dd7f4f8004215e24f876178e6f34c191d.tar.gz
git-736cc67dd7f4f8004215e24f876178e6f34c191d.tar.xz
Support a --cc=<email> option in format-patch
When you have particular reviewers you want to sent particular series to, it's nice to be able to generate the whole series with them as additional recipients, without configuring them into your general headers or adding them by hand afterwards. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4014-format-patch.sh')
-rwxr-xr-xt/t4014-format-patch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 43d8841d7..a39e786f7 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -122,6 +122,14 @@ test_expect_success 'extra headers with multiple To:s' '
grep "^ *S. E. Cipient <scipient@example.com>$" hdrs4
'
+test_expect_success 'additional command line cc' '
+
+ git config --replace-all format.headers "Cc: R. E. Cipient <rcipient@example.com>" &&
+ git format-patch --cc="S. E. Cipient <scipient@example.com>" --stdout master..side | sed -e "/^$/Q" >patch5 &&
+ grep "^Cc: R. E. Cipient <rcipient@example.com>,$" patch5 &&
+ grep "^ *S. E. Cipient <scipient@example.com>$" patch5
+'
+
test_expect_success 'multiple files' '
rm -rf patches/ &&