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

Re: git behaviour question regarding SHA-1 and commits

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Nov 13, 2011, 22:14 UTC
Message-ID
<CAHkcothpwYHK7qtmCE-XR8kVKb9bqfbSiWjLPW82SOEhohXR1g@mail.gmail.com>
In-Reply-To
<CAJuRt+r9BjYcead6hgzdUT0Bisz1D48cegqkoJ0S537VMYBy_g@mail.gmail.com>

On Sun, Nov 13, 2011 at 9:04 PM, vinassa vinassa <vinassa.vinassa@gmail.com> wrote:

Show 5 quoted lines
>
> I found some mention of this in the archive, more about SHA-1 security
> implications, that were dismissed, but here I am looking at just a
> random, very unfortunate case, and just wondering if in this case I
> would end up in a FUBAR situation.

I do not see how such an event would be very unfortunate considering that it would make you instantaneously famous, so you could write a lot of articles about what happened and make a fortunate of it... but if we consider a _far_ much more likely event like some object from the sky falling directly on your head at the moment when you are doing a commit, that I would be really very unfortunate... So, maybe, you should rent space in a bunker first just to work safely...

Seriously, it is so ridiculous to worry so much about so improbable event, while in practice a lot of repository corruptions comes from unreliable DRAM, disk storage, or some other reasons. The mean time between failures for high quality components is only a few hundred years while doing a commit every second will take dozen million times more than the age of our universe to generate a collision. So, those probabilities are so different that there is nothing in our every day experiences that has the same scale difference. It is like a hair width and the distance to the closest star.

Dmitry
Previous: Jeff KingNext: Johannes Sixt
Message 10 of 11 in “git behaviour question regarding SHA-1 and commits”
  1. vinassa vinassaNov 13, 2011
  2. Ævar Arnfjörð BjarmasonNov 13, 2011
  3. Junio C HamanoNov 14, 2011
  4. Jeff KingNov 14, 2011
  5. Jonathan NiederNov 13, 2011
  6. vinassa vinassaNov 13, 2011
  7. Jeff KingNov 14, 2011
  8. Victor EngmarkNov 14, 2011
  9. Jeff KingNov 14, 2011
  10. Dmitry PotapovNov 13, 2011
  11. Johannes SixtNov 14, 2011

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.