1#!/bin/sh2#3# Copyright (c) 2005 Junio C Hamano4#56test_description='git apply --stat --summary test, with --recount78'9. ./test-lib.sh1011UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/'1213num=014while read title15do16num=$(( $num + 1 ))17test_expect_success "$title" '18git apply --stat --summary \19<"$TEST_DIRECTORY/t4100/t-apply-$num.patch" >current &&20test_cmp ../t4100/t-apply-$num.expect current21'2223test_expect_success "$title with recount" '24sed -e "$UNC" <"$TEST_DIRECTORY/t4100/t-apply-$num.patch" |25git apply --recount --stat --summary >current &&26test_cmp ../t4100/t-apply-$num.expect current27'28done <<\EOF29rename30copy31rewrite32mode33non git (1)34non git (2)35non git (3)36EOF3738test_done