7 ms·
Does "git grep" use a system grep or does it implement grep on its own?
by xtrahotsauce 14y ago
Does "git grep" use a system grep or does it implement grep on its own?
- meaty 14y agoIt uses its own. See https://github.com/git/git/blob/master/builtin/grep.c https://github.com/git/git/blob/master/builtin/grep.c
- unwind 14y agoThat seems to be the "command infrastructure" for the grep builtin. The actual grep engine is in https://github.com/git/git/blob/master/grep.c https://github.com/git/git/blob/master/grep.c.
- drothlis 14y agoThe article has an answer to that. I'm not sure if you're challenging the article's answer or if you just missed it...
- xtrahotsauce 14y agoOops, missed that part of the article, thanks!