git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Aidan Van Dyk <aidan@highrise.ca>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-grep: Add ability to limit directory recursion
Date: Tue, 06 May 2008 17:34:48 -0700 (PDT)	[thread overview]
Message-ID: <m3iqxr54uy.fsf@localhost.localdomain> (raw)
In-Reply-To: <1210094304-2450-1-git-send-email-aidan@highrise.ca>

Aidan Van Dyk <aidan@highrise.ca> 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

  reply	other threads:[~2008-05-07  0:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 17:18 [PATCH] git-grep: Add ability to limit directory recursion Aidan Van Dyk
2008-05-07  0:34 ` Jakub Narebski [this message]
2008-05-07  0:47   ` Aidan Van Dyk
2008-05-07  1:34     ` Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3iqxr54uy.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=aidan@highrise.ca \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).