git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: log -S/-G (aka pickaxe) searches binary files by default

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 3, 2017, 01:36 UTC
Message-ID
<CAPc5daVSY5Z_+cpT1dHY-cM-TzNeu+Vzv+zouoOHW08PTFRQ7A@mail.gmail.com>
In-Reply-To
<7a0992eb-adb9-a7a1-cfaa-3384bc4d3e5c@virtuell-zuhause.de>

On Thu, Mar 2, 2017 at 4:52 PM, Thomas Braun <thomas.braun@virtuell-zuhause.de> wrote:

Show 8 quoted lines
>
> I happen to have quite large binary files in my repos.
>
> Today I realized that a line like
> git log -G a
> searches also files found to be binary (or explicitly marked as binary).
>
> Is that on purpose?

No, it's a mere oversight (as I do not think I never even thought about special casing binary files from day one, it is unlikely that you would find _any_ old version of Git that behaves differently).

Previous: Thomas BraunNext: Jeff King
Message 2 of 5 in “log -S/-G (aka pickaxe) searches binary files by default”
  1. Thomas BraunMar 3, 2017
  2. Junio C HamanoMar 3, 2017
  3. Jeff KingMar 3, 2017
  4. Junio C HamanoMar 3, 2017
  5. Thomas BraunMar 3, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.