3 test_description
='common tail optimization'
8 z
="$z$z$z$z$z$z$z$z" ;# 64
9 z
="$z$z$z$z$z$z$z$z" ;# 512
11 z2047
=$
(expr "$z" : '.\(.*\)') ; #2047
13 test_expect_success setup
'
15 echo "a$z2047" >file-a &&
17 echo "$z2047" >>file-b &&
18 echo "c$z2047" | tr -d "\012" >file-c &&
20 echo "$z2047" | tr -d "\012" >>file-d &&
22 git add file-a file-b file-c file-d &&
24 echo "A$z2047" >file-a &&
26 echo "$z2047" >>file-b &&
27 echo "C$z2047" | tr -d "\012" >file-c &&
29 echo "$z2047" | tr -d "\012" >>file-d
34 diff --git a
/file-a b
/file-a
40 diff --git a
/file-b b
/file-b
46 diff --git a
/file-c b
/file-c
51 \ No newline
at end of
file
53 \ No newline
at end of
file
54 diff --git a
/file-d b
/file-d
62 test_expect_success
'diff -U0' '
64 git diff -U0 | sed -e "/^index/d" -e "s/$z2047/Z/g" >actual &&