160923.2.3 · 283b689c53534441abe39b7e88ccd1b6f02ed89f
Change a few test cases to use .ignore instead of .gitignore, just to make sure the functionality works.
reading declarations
@@ -1,7 +1,7 @@ Setup. $ . $TESTDIR/setup.sh $ mkdir -p dir0/dir1/dir2- $ printf '*.DS_Store\n' > dir0/.gitignore+ $ printf '*.DS_Store\n' > dir0/.ignore $ printf 'blah\n' > dir0/dir1/dir2/blah.txt $ touch dir0/dir1/.DS_Store
@@ -4,7 +4,7 @@ Setup: $ mkdir -p ./a/b/c $ printf 'whatever1\n' > ./a/b/c/blah.yml $ printf 'whatever2\n' > ./a/b/foo.yml- $ printf '/a/b/foo.yml\n' > ./.gitignore+ $ printf '/a/b/foo.yml\n' > ./.ignore Ignore foo.yml but not blah.yml:
tests/ignore_absolute_search_path_with_glob.t
@@ -3,7 +3,7 @@ Setup: $ . $TESTDIR/setup.sh $ mkdir -p parent/multi-part $ printf 'match1\n' > parent/multi-part/file1.txt- $ printf 'parent/multi-*\n' > .gitignore+ $ printf 'parent/multi-*\n' > .ignore # Ignore directory specified by glob:
@@ -18,8 +18,8 @@ Setup: $ printf 'whatever14\n' > ./foo.yml~ $ printf 'whatever15\n' > ./.foo.yml.swp $ printf 'whatever16\n' > ./.foo.yml.swo- $ printf '*~\n' > ./.gitignore- $ printf '*.sw[po]\n' >> ./.gitignore+ $ printf '*~\n' > ./.ignore+ $ printf '*.sw[po]\n' >> ./.ignore Ignore all files except foo.yml
tests/ignore_examine_parent_ignorefiles.t
@@ -3,7 +3,7 @@ Setup: $ . $TESTDIR/setup.sh $ mkdir -p subdir $ printf 'match1\n' > subdir/file1.txt- $ printf 'file1.txt\n' > .gitignore+ $ printf 'file1.txt\n' > .ignore Ignore directory specified by name:
@@ -1,8 +1,8 @@ Setup: $ . $TESTDIR/setup.sh- $ printf '*.js\n' > .gitignore- $ printf '\n*.test.txt\n' >> .gitignore+ $ printf '*.js\n' > .ignore+ $ printf '\n*.test.txt\n' >> .ignore $ printf 'targetA\n' > something.js $ printf 'targetB\n' > aFile.test.txt $ printf 'targetC\n' > aFile.txt