mingw: implement getppid
[git/kusma.git] / t / t4006-diff-mode.sh
blobff8c2f7532aa6fd748dbbdc0322384576f3a35ed
1 #!/bin/sh
3 # Copyright (c) 2005 Junio C Hamano
6 test_description='Test mode change diffs.
9 . ./test-lib.sh
11 test_expect_success \
12 'setup' \
13 'echo frotz >rezrov &&
14 git update-index --add rezrov &&
15 tree=`git write-tree` &&
16 echo $tree'
18 test_expect_success \
19 'chmod' \
20 'test_chmod +x rezrov &&
21 git diff-index $tree >current'
23 sed -e 's/\(:100644 100755\) \('"$_x40"'\) \2 /\1 X X /' <current >check
24 echo ":100644 100755 X X M rezrov" >expected
26 test_expect_success \
27 'verify' \
28 'test_cmp expected check'
30 test_done