| # Copyright (c) 2005 Junio C Hamano |
| test_description='Test built-in diff output engine. |
| 'update-cache --add two files with and without +x.' \ |
| 'git-update-cache --add path0 path1' |
| sed -e 's/line/Line/' <path0- >path0 |
| 'git-diff-files -p after editing work tree.' \ |
| 'git-diff-files -p >current' |
| diff --git a/path0 b/path0 |
| diff --git a/path1 b/path1 |
| 'validate git-diff-files -p output.' \ |
| 'cmp -s current expected' |
| 'build same diff using git-diff-helper.' \ |
| 'git-diff-files -z | git-diff-helper -z >current' |
| 'validate git-diff-helper output.' \ |
| 'cmp -s current expected' |