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

Re: [PATCH] dir.c: skip .gitignore, etc larger than INT_MAX

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 4, 2024, 17:45 UTC
Message-ID
<xmqqikyowqjj.fsf@gitster.g>
In-Reply-To
<20240604103947.GC1781455@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> I was hoping to avoid making up an arbitrary number. But your question
> about gitattributes reminded me that we already did something similar in
> 3c50032ff5 (attr: ignore overly large gitattributes files, 2022-12-01).
> There it's a hard-coded 100MB limit (without even a config option).
>
> Maybe we should just do the same here?

Hmph, I thought the 100MB was only for blobs, as we stream the input we read from a regular file, but we do have the same limit there presumably to match what we do to blobs? I do not mind that, but I do not mind leaving it a future "consolidate various size limits on control files used by Git" patch, that unifies the limit for attrs, excludes, gitmodules, .git/config, etc.

Previous: Jeff KingNext: Jeff King
Message 4 of 7 in “dir.c: skip .gitignore, etc larger than INT_MAX”
  1. dir.c: skip .gitignore, etc larger than INT_MAXJeff King, May 31, 2024
  2. Junio C HamanoMay 31, 2024
  3. Jeff KingJun 4, 2024
  4. Junio C HamanoJun 4, 2024
  5. Jeff KingJun 5, 2024
  6. Junio C HamanoJun 5, 2024
  7. Junio C HamanoMay 31, 2024

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.