3 # Copyright (c) 2005 Junio C Hamano
 
   6 test_description='Test built-in diff output engine.
 
  10 . "$TEST_DIRECTORY"/diff-lib.sh
 
  19     'update-index --add two files with and without +x.' \
 
  20     'git update-index --add path0 path1'
 
  23 sed -e 's/line/Line/' <path0- >path0
 
  27     'git diff-files -p after editing work tree.' \
 
  28     'git diff-files -p >current'
 
  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
 
  59     'validate git diff-files -p output.' \
 
  60     'compare_diff_patch current expected'