3 # Copyright (c) 2007 Junio C Hamano
6 test_description
='git-apply --whitespace=strip and configuration file.
12 test_expect_success setup
'
20 test_expect_success
'apply --whitespace=strip' '
23 git update-index --refresh &&
25 git apply --whitespace=strip patch.file &&
35 test_expect_success
'apply --whitespace=strip from config' '
38 git update-index --refresh &&
40 git config apply.whitespace strip &&
41 git apply patch.file &&
54 test_expect_success
'apply --whitespace=strip in subdir' '
57 git config --unset-all apply.whitespace
59 git update-index --refresh &&
62 git apply --whitespace=strip ../patch.file &&
72 test_expect_success
'apply --whitespace=strip from config in subdir' '
75 git config apply.whitespace strip &&
77 git update-index --refresh &&
80 git apply ../patch.file &&