3 # Copyright (c) 2007 Junio C Hamano
6 test_description
='git-apply --whitespace=strip and configuration file.
12 test_expect_success setup
'
17 echo "B " >sub/file1 &&
21 test_expect_success
'apply --whitespace=strip' '
25 git update-index --refresh &&
27 git apply --whitespace=strip patch.file &&
37 test_expect_success
'apply --whitespace=strip from config' '
41 git update-index --refresh &&
43 git config apply.whitespace strip &&
44 git apply patch.file &&
56 test_expect_success
'apply --whitespace=strip in subdir' '
59 git config --unset-all apply.whitespace
62 git update-index --refresh &&
65 git apply --whitespace=strip -p2 ../patch.file &&
75 test_expect_success
'apply --whitespace=strip from config in subdir' '
78 git config apply.whitespace strip &&
81 git update-index --refresh &&
84 git apply -p2 ../patch.file &&