With a simple file pattern like *.pyc in a gitignore, ag (at least when searching filenames with -g) now only ignores files in the root directory, but not in child directories. I believe this is new with 0.23.0, but i'm not sure. I recently updated packages via homebrew so I assume this change was part of that.
Here is an example:
subdir x.py x.pyc
~/tmp> ls subdir
~/tmp> cat .gitignore
~/tmp> ag -g x
~/tmp> ag -g y
~/tmp> ag --version
ag version 0.23.0
The expected behavior is that "subdir/y.pyc" would also be ignored, as I believe used to be the case.
This appears to have been a problem for a while now. See issue #385
It's fixed in version 0.24!
Also appears fixed for me, reopen if you are still seeing this
oh yeah I'm not, it was fixed as mentioned. thanks!