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