format-patch: add tests for format.to and --to=
PATCH 1/1 format-patch: add tests for format.to and --to=
Cc Steven Drake <[email protected]>
Signed-off-by Stephen Boyd <[email protected]>
---
Squash away.
t/t4014-format-patch.sh | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
t/t4014-format-patch.sh +14 -0
@@ -143,6 +143,20 @@ test_expect_success 'configuration headers and command line headers' ' grep "^ *S. E. Cipient <[email protected]>\$" patch7 ' +test_expect_success 'command line To: header' ' + + git config --unset-all format.headers && + git format-patch --to="R. E. Cipient <[email protected]>" --stdout master..side | sed -e "/^\$/q" >patch8 && + grep "^To: R. E. Cipient <[email protected]>\$" patch8 +' + +test_expect_success 'configuration To: header' ' + + git config format.to "R. E. Cipient <[email protected]>" && + git format-patch --stdout master..side | sed -e "/^\$/q" >patch9 && + grep "^To: R. E. Cipient <[email protected]>\$" patch9 +' + test_expect_success 'multiple files' ' rm -rf patches/ &&
Signature · 1 line
1.7.0.1.164.gbe2f