mirror of
https://github.com/git/git.git
synced 2024-09-28 17:22:20 +02:00
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>
This commit is contained in:
parent
40ce41604d
commit
cdc067c319
@ -154,4 +154,9 @@ do
|
||||
'
|
||||
done
|
||||
|
||||
test_expect_success 'format-patch --range-diff as commentary' '
|
||||
git format-patch --stdout --range-diff=HEAD~1 HEAD~1 >actual &&
|
||||
test_i18ngrep "^Range-diff:$" actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
Reference in New Issue
Block a user