Skip to content

Combing ripgrep with git blame output? How to prefilter matches through git blame? #2262

Answered by gcflymoto
gcflymoto asked this question in Q&A
Discussion options

You must be logged in to vote

To reduce the cost of running "git blame" on every file before matching which is costly, this double search method provides the desired output

rg --pre git-blame content `rg -l content`

@BurntSushi thanks for the advice

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@BurntSushi
Comment options

@BurntSushi
Comment options

Answer selected by gcflymoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants