| # Copyright (c) 2005 Junio C Hamano |
| test_description='Test built-in diff output engine. |
| . "$TEST_DIRECTORY"/diff-lib.sh |
| 'update-index --add two files with and without +x.' \ |
| 'git update-index --add path0 path1' |
| sed -e 's/line/Line/' <path0- >path0 |
| 'git diff-files -p after editing work tree.' \ |
| 'git diff-files -p >current' |
| # that's as far as it comes |
| if [ "$(git config --get core.filemode)" = false ] |
| say 'filemode disabled on the filesystem' |
| diff --git a/path0 b/path0 |
| diff --git a/path1 b/path1 |
| 'validate git diff-files -p output.' \ |
| 'compare_diff_patch current expected' |