News for hackers. Stuff that matters.
Re:Beyond grep: ack, a code search tool for programmers by hippich on Saturday July 20, 2013 @12:47PM (#6075684)
If you use GIT, checkout also 'git grep' command.
Re:Beyond grep: ack, a code search tool for programmers by pcl on Saturday July 20, 2013 @04:47PM (#6076518)
It'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?
Re:Beyond grep: ack, a code search tool for programmers by keeperofdakeys on Saturday July 20, 2013 @09:49PM (#6077445)
Besides 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).
Re:Beyond grep: ack, a code search tool for programmers by pcl on Saturday July 20, 2013 @11:08PM (#6077613)
For 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.
Re:Beyond grep: ack, a code search tool for programmers by davvid on Saturday July 20, 2013 @04:21PM (#6076420)
Yes, 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.