Make "git-checkout" create files with O_EXCL
authorLinus Torvalds <redacted>
Thu, 14 Jul 2005 00:27:48 +0000 (17:27 -0700)
committerLinus Torvalds <redacted>
Thu, 14 Jul 2005 00:27:48 +0000 (17:27 -0700)
commit2408cff9f738459019709c8c12d0bd8a5605566f
tree9baa5e67c470376b09cbcc4cb68ef80654753e1f
parent1b668341db6576d8d851473c74388031b319798a
Make "git-checkout" create files with O_EXCL

We should always have unlinked any old ones before, but this just makes
sure that we never over-write any old file.

A quick "grep" now shows that all the core tools that open files for
writing use O_EXCL, ie we never overwrite an existing file in place.
entry.c
git clone https://git.99rst.org/PROJECT