Re: [PATCH] checkout files in-place
- From
Clemens Buchacher <drizzd@gmx.net>
- Date
- Jun 11, 2018, 20:22 UTC
- Message-ID
- <20180611202247.GA1236@Sonnenschein.localdomain>
- In-Reply-To
- <xmqqvaapb3r1.fsf@gitster-ct.c.googlers.com>
On Mon, Jun 11, 2018 at 11:02:42AM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> > Aside from us not having to worry about emulating the umask, another > reason why we prefer "create, complete the write, and then finally > rename" over "overwrite and let it fail in the middle" is that the > former makes sure we never leave the path in a bad state.
But the current checkout implementation does not do this. It writes directly to the target location. The only difference to in-place checkout is that files are unlinked before they are opened for writing.