| ▲ | JetSetIlly 8 hours ago | |
Some nice ideas but the regexes should include word boundaries. For example: git log -i -E --grep="\b(fix|fixed|fixes|bug|broken)\b" --name-only --format='' | sort | uniq -c | sort -nr | head -20 I have a project with a large package named "debugger". The presence of "bug" within "debugger" causes the original command to go crazy. | ||
| ▲ | nozzlegear 3 minutes ago | parent | next [-] | |
Note this doesn't work by default[†] on macOS, where git uses the POSIX version of grep (which doesn't support `\b`). [†] You could compile git with Perl Regexp support and then use `git grep -i -P ...` instead of `git grep -i -E ...` I think. | ||
| ▲ | grepsedawk 6 hours ago | parent | prev [-] | |
Good catch, that's better | ||