160923.2.3 · Change a few test cases to use .ignore instead of .gitignore, just to make sure the functionality works.
Setup:
$ . $TESTDIR/setup.sh
$ 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' > ./.ignore
Ignore foo.yml but not blah.yml:
$ ag whatever .
a/b/c/blah.yml:1:whatever1
Dont ignore anything (unrestricted search):
$ ag -u whatever . | sort
a/b/c/blah.yml:1:whatever1
a/b/foo.yml:1:whatever2
Ignore foo.yml given an absolute search path [#448]:
$ ag whatever $(pwd)
/.*/a/b/c/blah.yml:1:whatever1 (re)