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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jakub Narebski <jnareb@xxxxxxxxx> [080506 20:34]:
> Aidan Van Dyk <aidan@xxxxxxxxxxx> 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...

Good idea - I hadn't thought of that, but I like it better.

a.
-- 
Aidan Van Dyk                                             Create like a god,
aidan@xxxxxxxxxxx                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux