3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git apply --stat --summary test, with --recount
11 UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/'
17 test_expect_success "$title" '
18 git apply --stat --summary \
19 <"$TEST_DIRECTORY/t4100/t-apply-$num.patch" >current &&
20 test_cmp ../t4100/t-apply-$num.expect current
23 test_expect_success "$title with recount" '
24 sed -e "$UNC" <"$TEST_DIRECTORY/t4100/t-apply-$num.patch" |
25 git apply --recount --stat --summary >current &&
26 test_cmp ../t4100/t-apply-$num.expect current