3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='git apply symlinks and partial files
12 test_expect_success setup
'
14 test_ln_s_add path1/path2/path3/path4/path5 link1 &&
15 git commit -m initial &&
21 test_ln_s_add htap6 link1 &&
22 git commit -m second &&
24 git diff-tree -p HEAD^ HEAD >patch &&
25 git apply --stat --summary patch
29 test_expect_success SYMLINKS
'apply symlink patch' '
33 git diff-files -p >patched &&
34 test_cmp patch patched
38 test_expect_success
'apply --index symlink patch' '
40 git checkout -f side &&
41 git apply --index patch &&
42 git diff-index --cached -p HEAD >patched &&
43 test_cmp patch patched