@ 201216.1

160923.2.3 · 283b689c53534441abe39b7e88ccd1b6f02ed89f

Change a few test cases to use .ignore instead of .gitignore, just to make sure the functionality works.

reading declarations

tests/ds_store_ignore.t

@@ -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 

tests/ignore_abs_path.t

@@ -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: 

tests/ignore_backups.t

@@ -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: 

tests/ignore_extensions.t

@@ -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