-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This has been requested various times. I haven't done it because 'west forall -c "git grep"' has been a reasonable workaround for me, and I never had time or need to think about what an ergonomic alternative might look like. That's changed now and I wanted something that would only print output for projects where a result was found, similarly to the way "west diff" only prints for projects with nonempty "git diff", etc. Add a "grep" command that does similar, defaulting to use of "git grep" to get the job done. Also support (my favorite) ripgrep and plain "grep --recursive". See the GREP_EPILOG variable in the patch for detailed usage information. Signed-off-by: Martí Bolívar <[email protected]>
- Loading branch information
1 parent
9e8f500
commit f2b9735
Showing
2 changed files
with
200 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters