66 ms·
If you use GIT, checkout also 'git grep' command.
by hippich 13y ago
If you use GIT, checkout also 'git grep' command.
- davvid 13y agoYes, more people need to know about "git grep". Did you know you can do things like `git grep -e foo --and -e bar --and --not -e baz`? "git grep" is great.
- pcl 13y agoIt'd be cool to see these sorts of new search tools integrate into the git ecosystem. I wonder how much faster 'git ack' would be than just straight-up ack -- in other words, could ack benefit from any of git's working tree and delta-based optimizations / awareness?
- keeperofdakeys 13y agoBesides only searching the files in the working tree, and more easily searching previous revisions, there won't be any speed improvements. Even if a file is stored using deltas, you still need to fully reconstruct it (more processing).
- pcl 13y agoFor full-file queries, sure. But I could imagine asking temporal questions like "show me changes made in the last month that introduces API x", for example.