Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] git-grep: Add ability to limit directory recursion

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:44:34

Aidan Van Dyk [off-list ref] writes:
This add a -R <limit> option to git-grep which will limit the depth of the
directories recursed when git is doing a grep.

This allows you to do something like:
        git grep -R 1 <pattern>
and see only the results of the grep on files in the current directory.

It defaults to a limit of "0" which disables the limiting.
Nice idea, although I'm not sure if we shouldn't borrow "-maxdepth"
option from GNU find and friends...

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help