summaryrefslogtreecommitdiff
path: root/t/t4014-format-patch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-02 22:19:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-04 00:05:44 (GMT)
commit7952ea66e72d1129afbebcdde11dcbeecd92698a (patch)
tree1db0ad40259ec39c8f85ba4a20a394f64fb60201 /t/t4014-format-patch.sh
parent4aad08e061df699b49e24c4d34698d734473fb66 (diff)
downloadgit-7952ea66e72d1129afbebcdde11dcbeecd92698a.zip
git-7952ea66e72d1129afbebcdde11dcbeecd92698a.tar.gz
git-7952ea66e72d1129afbebcdde11dcbeecd92698a.tar.bz2
format-patch: give --reroll-count a short synonym -v
Accept "-v" as a synonym to "--reroll-count", so that users can say "git format-patch -v4 master", instead of having to fully spell it out as "git format-patch --reroll-count=4 master". As I do not think of a reason why users would want to tell the command to be "verbose", I think this should be OK. 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 0ff9958..aa9470d 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -245,6 +245,14 @@ test_expect_success 'reroll count' '
! grep -v "^Subject: \[PATCH v4 [0-3]/3\] " subjects
'
+test_expect_success 'reroll count (-v)' '
+ rm -fr patches &&
+ git format-patch -o patches --cover-letter -v4 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 &&