Re: [PATCH] sha1_file: don't malloc the whole compressed result when writing out objects
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 22, 2010, 06:17 UTC
- Message-ID
- <7v8walyesu.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <alpine.LFD.2.00.1002220034540.1946@xanadu.home>
Nicolas Pitre <nico@fluxnic.net> writes:
> And what real life case would trigger this? Given the size of the > window for this to happen, what are your chances?
> Of course the odds for me to be struck by lightning also exist. And if > I work really really hard at it then I might be able to trigger that > pathological case above even before the next thunderstorm. But in > practice I'm hardly concerned by either of those possibilities.
The real life case for any of this triggers for me is zero, as I won't be mistreating git as a continuous & asynchronous back-up tool.
But then that would make the whole discussion moot. There are people who file "bug reports" with an artificial reproduction recipe built around a loop that runs dd continuously overwriting a file while "git add" is asked to add it.