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

Re: Problem with large files on different OSes

From
CJChristopher Jefferson <caj@cs.st-andrews.ac.uk>
Date
May 27, 2009, 17:22 UTC
Message-ID
<submission.1M9Mpl-0001CW-M0@mail.cs.st-andrews.ac.uk>
In-Reply-To
<alpine.LFD.2.01.0905270942580.3435@localhost.localdomain>
On 27 May 2009, at 17:59, Linus Torvalds wrote:
Show 7 quoted lines
>
>
> On Wed, 27 May 2009, Linus Torvalds wrote:
>>
>> I'll see if I can make us handle the "big file without diff" case  
>> better
>> by chunking.
> So "don't do it then" or "make sure you are 64-bit and have lots of
> memory if you do it" may well be the right solution.
Thank you for that description of the problem, I can see how hard it is.

Perhaps it might be useful to think about how to codify "don't do it then" in a reasonably simple, automatic way?

I've been trying to write a pre-commit hook (I think that's the right place?) which would refuse commits larger than some file size (512MB as a random number I decided), but am having trouble getting it to work right, and generally. Would such a thing be easy, and would that be the right place to put it?

While I wouldn't suggest this become default, providing such a hook, and describing why you might want to use it, would seem to avoid the accidental part of the problem.

Of course, people should really notice that they are submitting large files, but it's easy(ish) to commit some output file from a program, without realising the file ended up being the wrong side of 1GB.

Chris
Previous: Linus TorvaldsNext: Jakub Narebski
Message 13 of 31 in “Problem with large files on different OSes”
  1. Christopher JeffersonMay 27, 2009
  2. Andreas EricssonMay 27, 2009
  3. Christopher JeffersonMay 27, 2009
  4. John TapsellMay 27, 2009
  5. Christopher JeffersonMay 27, 2009
  6. John TapsellMay 27, 2009
  7. Tomas CarneckyMay 27, 2009
  8. Christopher JeffersonMay 27, 2009
  9. Andreas EricssonMay 27, 2009
  10. Jakub NarebskiMay 27, 2009
  11. Linus TorvaldsMay 27, 2009
  12. Linus TorvaldsMay 27, 2009
  13. Christopher JeffersonMay 27, 2009
  14. Jakub NarebskiMay 27, 2009
  15. Nicolas PitreMay 27, 2009
  16. Jeff KingMay 27, 2009
  17. Linus TorvaldsMay 27, 2009
  18. Alan Manuel GloriaMay 27, 2009
  19. Linus TorvaldsMay 28, 2009
  20. Nicolas PitreMay 28, 2009
  21. Eric RaibleMay 28, 2009
  22. Shawn O. PearceMay 28, 2009
  23. Eric RaibleMay 28, 2009
  24. Andreas EricssonMay 28, 2009
  25. Nicolas PitreMay 28, 2009
  26. Jeff KingMay 28, 2009
  27. Linus TorvaldsMay 28, 2009
  28. Nicolas PitreMay 27, 2009
  29. Jeff KingMay 28, 2009
  30. Nicolas PitreMay 28, 2009
  31. Jeff KingMay 28, 2009

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.