git-apply: be a lot more careful when writing files
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 00:25:53 +0000 (17:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 00:25:53 +0000 (17:25 -0700)
We write them under another name and rename them to their destination,
so that if something bad happens in the middle, we won't have caused any
bigger harm.

Also, this makes the writing be NFS "intr" safe, and as a side effects
makes sure that if the target is hardlinked (or symlinked) we will have
broken the link.

No differences found