Code

git-apply --directory: make --root more similar to GNU diff
[git.git] / t / t4128-apply-root.sh
index b6502454556feaf026ad358e18b7c09a62a0c765..2dd0c75f964b690977e40a3a8235cc324dc6826e 100755 (executable)
@@ -23,18 +23,18 @@ diff a/bla/blub/dir/file b/bla/blub/dir/file
 +Bello
 EOF
 
-test_expect_success 'apply --root -p (1)' '
+test_expect_success 'apply --directory -p (1)' '
 
-       git apply --root=some/sub -p3 --index patch &&
+       git apply --directory=some/sub -p3 --index patch &&
        test Bello = $(git show :some/sub/dir/file) &&
        test Bello = $(cat some/sub/dir/file)
 
 '
 
-test_expect_success 'apply --root -p (2) ' '
+test_expect_success 'apply --directory -p (2) ' '
 
        git reset --hard initial &&
-       git apply --root=some/sub/ -p3 --index patch &&
+       git apply --directory=some/sub/ -p3 --index patch &&
        test Bello = $(git show :some/sub/dir/file) &&
        test Bello = $(cat some/sub/dir/file)