Improve sha1 object file writing.
commitaac17941320f7f73e5d411b152bfd041572e8a66
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 3 May 2005 18:46:16 +0000 (3 11:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 3 May 2005 18:46:16 +0000 (3 11:46 -0700)
treed9d60eafac14cba0eb18bee4f2c762ed5ed98956
parent92d4c85d248728b1937d01fdd088173753c6994d
Improve sha1 object file writing.

Make it much safer: we write to a temporary file, and then link that
temporary file to the final destination. This avoids all the nasty
races if several people write the same object at the same time.

It should also result in nicer on-disk layout, since it means that
objects all get created in the same subdirectory. That makes a lot
of block allocation algorithms happier, since the objects will now
be allocated from the same zone.
cache.h
sha1_file.c