3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='Test built-in diff output engine.
10 .
"$TEST_DIRECTORY"/diff-lib.sh
18 test_expect_success
'update-index --add two files with and without +x.' '
19 git update-index --add path0 path1
23 sed -e 's/line/Line/' <path0-
>path0
26 test_expect_success
'git diff-files -p after editing work tree.' '
27 git diff-files -p >actual
30 # that's as far as it comes
31 if [ "$(git config --get core.filemode)" = false
]
33 say
'filemode disabled on the filesystem'
38 diff --git a
/path0 b
/path0
48 diff --git a
/path1 b
/path1
49 deleted
file mode
100755
58 test_expect_success
'validate git diff-files -p output.' '
59 compare_diff_patch expected actual