4 ms·
Are we supposed to know what "ag" is?
by tamana 10y ago
Are we supposed to know what "ag" is?
- x0x0 10y agoIf you haven't tried https://github.com/ggreer/the_silver_searcher https://github.com/ggreer/the_silver_searcher yet you're missing out The progression is grep with a ton of flags (or even find | xargs grep) -> ack -> ag. ag is faster than ack, automatically understands .gitignore, gives you .agignore as well, and is just a really nice piece of software.
- 0x0 10y agoMy experience with "ack" was that it seemed great for a few days and then I realized it was silently skipping searching certain files, causing hits to be suppressed, so I stopped trusting it. :-/
- RasmusWL 10y agoag has issues with .gitignore, as patterns are not recognized properly. The matcher that git uses cannot be included due to licensing (see https://github.com/ggreer/the_silver_searcher/pull/614 https://github.com/ggreer/the_silver_searcher/pull/614). Does seem like there is hope, as a BSD licensed version exists. My fingers are crossed that this is solved soon :)
- gitaarik 10y agoinside a git repository I would recommend using `git grep`
- pmontra 10y agoag uses .agignore I often need to search only on a subset of the files checked in git. Example, I don't search the min.js files but I need them for the deploys. It would be nice if they could share the same format.
- Semiapies 10y agoThat or follow the link given with the very first mention of "ag" in TFA.