rebase --root: fix amending root commit messages
[git.git] / t / t4115-apply-symlink.sh
blob872fcda6cb6dce98ec360c41cb6ae1220193ca48
1 #!/bin/sh
3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git apply symlinks and partial files
10 . ./test-lib.sh
12 test_expect_success setup '
14 test_ln_s_add path1/path2/path3/path4/path5 link1 &&
15 git commit -m initial &&
17 git branch side &&
19 rm -f link? &&
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' '
31 git checkout side &&
32 git apply 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
47 test_done