diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-02 14:16:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-02 14:16:07 -0800 |
commit | 4aad08e061df699b49e24c4d34698d734473fb66 (patch) | |
tree | 87c1ff34565f4eab468d7acd5a561a51faad0f60 /t/t4014-format-patch.sh | |
parent | 5fe10fe80a04a57affbaa35258f498bc1acb05e9 (diff) | |
download | git-4aad08e061df699b49e24c4d34698d734473fb66.tar.gz |
format-patch: document and test --reroll-count
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4014-format-patch.sh')
-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 959aa26ef5..0ff99582c6 100755 --- a/t/t4014-format-patch.sh +++ b/t/t4014-format-patch.sh @@ -237,6 +237,14 @@ test_expect_success 'multiple files' ' ls patches/0001-Side-changes-1.patch patches/0002-Side-changes-2.patch patches/0003-Side-changes-3-with-n-backslash-n-in-it.patch ' +test_expect_success 'reroll count' ' + rm -fr patches && + git format-patch -o patches --cover-letter --reroll-count 4 master..side >list && + ! grep -v "^patches/v4-000[0-3]-" list && + sed -n -e "/^Subject: /p" $(cat list) >subjects && + ! grep -v "^Subject: \[PATCH v4 [0-3]/3\] " subjects +' + check_threading () { expect="$1" && shift && |