3 test_description
='diff hunk header truncation'
5 TEST_PASSES_SANITIZE_LEAK
=true
11 NS
="$N$N$N$N$N$N$N$N$N$N$N$N$N"
13 test_expect_success setup
'
17 for c in B C D E F G H I J K
22 for c in M N O P Q R S T U V
29 sed -e "/^ [EP]/s/$/ modified/" <file >file+ &&
34 test_expect_success
'hunk header truncation with an overly long line' '
36 git diff | sed -n -e "s/^.*@@//p" >actual &&
38 echo " A $N$N$N$N$N$N$N$N$N2" &&
39 echo " L $N$N$N$N$N$N$N$N$N1"
41 test_cmp expected actual