git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: El_Hoy <eloyesp@gmail.com>,  git@vger.kernel.org
Subject: Re: Making git grep ignore binary the default
Date: Sat, 18 Oct 2025 09:01:28 -0700	[thread overview]
Message-ID: <xmqq347gw65j.fsf@gitster.g> (raw)
In-Reply-To: <20251018102209.GH1060824@coredump.intra.peff.net> (Jeff King's message of "Sat, 18 Oct 2025 06:22:09 -0400")

Jeff King <peff@peff.net> writes:

> I think we've discussed this before, and digging in the archive found
> this thread from 2012:
>
>   https://lore.kernel.org/git/4f1d2a8b.a2d8320a.50ec.576d@mx.google.com/
>
> I think some of those ideas came to fruition. You can do:
>
>   git grep ':(attr:!binary)'
>
> now (which obviously is harder than "-I", but the point is that it
> extends to any attribute if you want). But I still think it would be
> nice if there was a way to make it the default (without using an alias).

Yeah, after I re-read the thread, I specially liked the "filetype"
idea that you floated in

  https://lore.kernel.org/git/20120125214625.GA4666@sigill.intra.peff.net/

;-).

      reply	other threads:[~2025-10-18 16:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-17 15:00 Making git grep ignore binary the default El_Hoy
2025-10-17 21:29 ` Junio C Hamano
2025-10-17 23:29   ` Thomas Braun
2025-10-18  0:52     ` brian m. carlson
2025-10-18 14:16       ` rsbecker
2025-10-20 15:24       ` Thomas Braun
2025-10-20 17:20         ` El_Hoy
2025-10-21  7:27           ` Jeff King
2025-10-18 10:22   ` Jeff King
2025-10-18 16:01     ` Junio C Hamano [this message]

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=xmqq347gw65j.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=eloyesp@gmail.com \
    --cc=git@vger.kernel.org \
    --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).