3 # Copyright (c) 2005 Junio C Hamano
6 test_description='Test mode change diffs.
11 sed_script='s/\(:100644 100755\) \('"$_x40"'\) \2 /\1 X X /'
13 test_expect_success 'setup' '
15 git update-index --add rezrov &&
16 tree=`git write-tree` &&
20 test_expect_success 'chmod' '
21 test_chmod +x rezrov &&
22 git diff-index $tree >current &&
23 sed -e "$sed_script" <current >check &&
24 echo ":100644 100755 X X M rezrov" >expected &&
25 test_cmp expected check