diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2008-02-19 02:40:35 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-19 21:49:38 -0800 |
commit | 736cc67dd7f4f8004215e24f876178e6f34c191d (patch) | |
tree | 53585ea3f7a641b60ad4993d9d0f8513e7494bdd /t | |
parent | 3ee79d9f59684778151804c02cc6ad155b30efde (diff) | |
download | git-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')
-rwxr-xr-x | t/t4014-format-patch.sh | 8 |
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/ && |