3 test_description
='diff hunk header truncation'
10 NS
="$N$N$N$N$N$N$N$N$N$N$N$N$N"
12 test_expect_success setup
'
16 for c in B C D E F G H I J K
21 for c in M N O P Q R S T U V
28 sed -e "/^ [EP]/s/$/ modified/" <file >file+ &&
33 test_expect_success
'hunk header truncation with an overly long line' '
35 git diff | sed -n -e "s/^.*@@//p" >actual &&
37 echo " A $N$N$N$N$N$N$N$N$N2"
38 echo " L $N$N$N$N$N$N$N$N$N1"
40 diff -u actual expected