Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recently found out about `git log -G REGEX` (and -S)

This will filter all commits (ie. lines changed by the commit) by the REGEX and report back the log for those.

With -S, commits with equal number of matches in added and removed lines are ignored.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: