{"thread":{"id":"22916","subject":"[PATCH sd/format-patch-to] format-patch: add tests for format.to and --to=","startedAt":"2010-03-05T08:57:35Z","lastAt":"2010-03-05T08:57:35Z","messageCount":1,"participants":["Stephen Boyd"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"136189","messageId":"1267779455-7811-1-git-send-email-bebarino@gmail.com","threadId":"22916","inReplyTo":null,"subject":"[PATCH sd/format-patch-to] format-patch: add tests for format.to and --to=","fromName":"Stephen Boyd","fromEmail":"bebarino@gmail.com","sentAt":"2010-03-05T08:57:35Z","receivedAt":"2010-03-05T08:57:35Z","isPatch":true,"sender":{"key":"bebarino@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38832?v=4"},"body":"Cc: Steven Drake <sdrake@xnet.co.nz>\nSigned-off-by: Stephen Boyd <bebarino@gmail.com>\n---\n\nSquash away.\n\n t/t4014-format-patch.sh |   14 ++++++++++++++\n 1 files changed, 14 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh\nindex f2a2aaa..830ddb0 100755\n--- a/t/t4014-format-patch.sh\n+++ b/t/t4014-format-patch.sh\n@@ -143,6 +143,20 @@ test_expect_success 'configuration headers and command line headers' '\n \tgrep \"^ *S. E. Cipient <scipient@example.com>\\$\" patch7\n '\n \n+test_expect_success 'command line To: header' '\n+\n+\tgit config --unset-all format.headers &&\n+\tgit format-patch --to=\"R. E. Cipient <rcipient@example.com>\" --stdout master..side | sed -e \"/^\\$/q\" >patch8 &&\n+\tgrep \"^To: R. E. Cipient <rcipient@example.com>\\$\" patch8\n+'\n+\n+test_expect_success 'configuration To: header' '\n+\n+\tgit config format.to \"R. E. Cipient <rcipient@example.com>\" &&\n+\tgit format-patch --stdout master..side | sed -e \"/^\\$/q\" >patch9 &&\n+\tgrep \"^To: R. E. Cipient <rcipient@example.com>\\$\" patch9\n+'\n+\n test_expect_success 'multiple files' '\n \n \trm -rf patches/ &&\n-- \n1.7.0.1.164.gbe2f\n"}]}