t3206-range-diff.sh: cover single-patch case
The commit 40ce4160 "format-patch: allow --range-diff to apply to a lone-patch" added the ability to see a range-diff as commentary after the commit message of a single patch series (i.e. [PATCH] instead of [PATCH X/N]). However, this functionality was not covered by a test case. Add a simple test case that checks that a range-diff is written as commentary to the patch. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Derrick Stolee committed
Sep 12, 2018 at 07:31 UTC
cdc067c3197f659470591c1d5614cf9221a43c98
1 file changed
+5
t/t3206-range-diff.sh
+5
@@ -154,4 +154,9 @@ do
154
'
155
done
156
157
+test_expect_success 'format-patch --range-diff as commentary' '
158
+ git format-patch --stdout --range-diff=HEAD~1 HEAD~1 >actual &&
159
+ test_i18ngrep "^Range-diff:$" actual
160
+'
161
+
162
test_done