From: Junio C Hamano <gitster@pobox.com>
To: Noel Grandin <noel@peralex.com>
Cc: Trevor Saunders <tbsaunde@tbsaunde.org>,
Jeff King <peff@peff.net>, Duy Nguyen <pclouds@gmail.com>,
git <git@vger.kernel.org>
Subject: Re: feature request: excluding files/paths from "git grep"
Date: Wed, 04 Mar 2015 12:56:10 -0800 [thread overview]
Message-ID: <xmqq385k8ot1.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <54F6EB96.6080500@peralex.com> (Noel Grandin's message of "Wed, 04 Mar 2015 13:25:10 +0200")
Noel Grandin <noel@peralex.com> writes:
> On 2015-03-02 02:50 PM, Trevor Saunders wrote:
>> I think they solve somewhat different problems, but maybe my problem
>> is so specialized I should just have a wrapper around grep that
>> changes defaults. Trev
>
> I'm with Trevor on this one. While I see the appeal of the generality
> of a macro solution, this is really just about convenience for me on a
> per-project basis.
>
> As in, while working on a specific project, I sometimes just want to
> exclude, for the time being, a bunch of stuff from 'git grep'.
The key word here is "for the time being", though. What would you
do once you are done with the "for the time being" activity? "git
config --unset"?
If you forget to do so when the "for the time being" activity ends,
and then you try to run 'git grep' and see that you did not get
expected hits from hierarchies that you set to exclude earlier, you
either (1) get misled to a wrong decison based on that false
non-hit, or (2) start scratching your head, wasting time trying to
figure out why 'git grep' is not hitting, no?
I expect the answer might be "No, I won't forget; I am very well
organized and you do not have to worry for me". But a feature is an
invitation for people other than yourself, so...
next prev parent reply other threads:[~2015-03-04 20:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 12:23 feature request: excluding files/paths from "git grep" Noel Grandin
2015-02-25 13:46 ` Duy Nguyen
2015-02-25 14:31 ` Jeff King
2015-02-25 18:33 ` Junio C Hamano
2015-02-25 18:51 ` Jeff King
2015-02-25 19:01 ` Junio C Hamano
2015-02-25 19:11 ` Jeff King
2015-02-26 11:16 ` Michael J Gruber
2015-02-26 11:58 ` Duy Nguyen
2015-02-26 20:59 ` Junio C Hamano
2015-02-27 15:13 ` Michael J Gruber
2015-02-27 19:17 ` Junio C Hamano
2015-02-27 10:04 ` Trevor Saunders
2015-03-01 3:06 ` Junio C Hamano
2015-03-01 13:03 ` Trevor Saunders
2015-03-01 23:22 ` Junio C Hamano
2015-03-02 12:50 ` Trevor Saunders
2015-03-04 11:25 ` Noel Grandin
2015-03-04 20:56 ` Junio C Hamano [this message]
2015-03-05 5:22 ` Jeff King
2015-03-05 6:03 ` Junio C Hamano
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=xmqq385k8ot1.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=noel@peralex.com \
--cc=pclouds@gmail.com \
--cc=peff@peff.net \
--cc=tbsaunde@tbsaunde.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.