ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.
http://geoff.greer.fm/ag/
Apache License 2.0
26.2k stars 1.43k forks source link

`--ignore` should trump all other options #874

Open mwilliammyers opened 8 years ago

mwilliammyers commented 8 years ago

I don't know if this is by design or due to the other open issues regarding --ignore, but I feel like the default should be that --ignore options should trump all other options.

For example:

ag -g '.*'  --all-text --hidden --ignore '.git' 

should print the filenames of ALL text files except any under ./**/*.git/.

Right now --all-text trumps --ignore and prints out all the files under ./**/*.git/.

aakropotkin commented 4 years ago

I completely agree.