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

List empty files without -u #1498

Open otto-dev opened 2 years ago

otto-dev commented 2 years ago

Fixes #1497

-l should include empty files, and only exclude files subject to an exclusion filter (such as .gitignore).

Empty files are still in the subset of searchable files. ag does not need to open the file to know that there is no matching query (if there is a query), but that does not mean that -l should not list them.