3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='git apply symlinks and partial files
12 if test "$no_symlinks"
14 say
'Symbolic links not supported, skipping tests.'
19 test_expect_success setup
'
21 ln -s path1/path2/path3/path4/path5 link1 &&
23 git commit -m initial &&
30 git update-index link? &&
31 git commit -m second &&
33 git diff-tree -p HEAD^ HEAD >patch &&
34 git apply --stat --summary patch
38 test_expect_success
'apply symlink patch' '
42 git diff-files -p >patched &&
43 git diff patch patched
47 test_expect_success
'apply --index symlink patch' '
49 git checkout -f side &&
50 git apply --index patch &&
51 git diff-index --cached -p HEAD >patched &&
52 git diff patch patched