Skip to content

Commit cdc067c

Browse files
derrickstoleegitster
authored andcommitted
t3206-range-diff.sh: cover single-patch case
The commit 40ce416 "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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 40ce416 commit cdc067c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t3206-range-diff.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,9 @@ do
154154
'
155155
done
156156

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+
157162
test_done

0 commit comments

Comments
 (0)