From: Jakub Narebski Date: Wed, 07 May 2008 00:34:48 GMT Subject: Re: [PATCH] git-grep: Add ability to limit directory recursion Message-ID: In-Reply-To: <1210094304-2450-1-git-send-email-aidan@highrise.ca> Aidan Van Dyk writes: > This add a -R 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 > 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