From: Joe Ratterman <jratt0@gmail.com>
To: Bert Wesarg <bert.wesarg@googlemail.com>
Cc: Michael J Gruber <git@drmicha.warpmail.net>,
Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, Jeff King <peff@peff.net>
Subject: Re: [PATCH] Add two grep config options
Date: Mon, 28 Mar 2011 09:48:19 -0500 [thread overview]
Message-ID: <AANLkTin_qRH54C0wKML67gftS05X98sKE+AxHJ4xo77C@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin_qeFSqyXHddmEpu=5e4yO8cxyOkbhcXUg3efn@mail.gmail.com>
On Mon, Mar 28, 2011 at 7:13 AM, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
>
> On Mon, Mar 28, 2011 at 09:24, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
> > We could safeguard scripts from this by
> >
> > - checking istty and
>
> That should consider running under the pager too.
>
> I had proposed this scheme last year to TopGit as a way to
> differentiate between ui and plumbing. But as Jeff pointed out, this
> is probably not enough.
>
> Bert
>
> > - checking env for GIT_PLUMBING
> >
Thanks for looking over this and taking the time to comment. I had
not considered the importance of the first line, nor had I noticed the
lack of hyphens in the other options--I copied the name of
grep.extended-regexp from the --extended-regexp grep option. I can
change those things if the general idea is accepted. I like the idea
of a single option config key have takes a list of command-line flags,
but I'm not 100% sure I know enough about git code internals to
implement it. I'll look.
With regard to disabling the line numbering, GNU grep supports both -n
and --line-number. Adding the latter option to git grep allows for
the long form --no-line-number. Another option would be to use -N for
the negative, like -h and -H. GNU grep doesn't support either of
those.
Thanks,
Joe Ratterman
next prev parent reply other threads:[~2011-03-28 14:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 21:21 [PATCH] Add two grep config options Joe Ratterman
2011-03-25 23:25 ` Junio C Hamano
2011-03-28 7:24 ` Michael J Gruber
2011-03-28 11:54 ` Jeff King
2011-03-28 12:00 ` Michael J Gruber
2011-03-28 12:09 ` Jeff King
2011-03-28 17:12 ` Junio C Hamano
2011-03-28 17:21 ` Jeff King
2011-03-28 18:39 ` Junio C Hamano
2011-03-28 18:08 ` Joe Ratterman
2011-03-28 12:13 ` Bert Wesarg
2011-03-28 14:48 ` Joe Ratterman [this message]
2011-03-28 17:14 ` Junio C Hamano
2011-03-28 22:12 ` [PATCH] grep: allow -E and -n to be turned on by default via configuration Junio C Hamano
2011-03-28 22:14 ` Junio C Hamano
2011-03-28 22:41 ` Joe Ratterman
2011-03-28 23:16 ` Junio C Hamano
2011-03-29 3:12 ` Joe Ratterman
2011-03-30 19:31 ` [PATCH v3] " Joe Ratterman
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=AANLkTin_qRH54C0wKML67gftS05X98sKE+AxHJ4xo77C@mail.gmail.com \
--to=jratt0@gmail.com \
--cc=bert.wesarg@googlemail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/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).