Hacker News new | ask | show | jobs
by waxjar 4041 days ago
I've been using a one-liner git alias to do this for a while now. Works really well.

It uses git grep for grepping/colouring the output and sed to remove prefixed whitespace.

1 comments

This is a great solution. I would only use Leasot if you need to weed out some false positives (variable names, strings etc...) and perhaps want to output in a special format (JSON, XML, markdown...) for another tool (Think jenkins CI for example).

If CLI regex matching (grep, ag, git grep, pt, ack...) works for you, I would stick with it ;)