From: Junio C Hamano Date: Mon, 11 Jun 2018 22:46:45 GMT Subject: Re: [PATCH v2] checkout files in-place Message-ID: In-Reply-To: <87a7s1vw9a.fsf@evledraar.gmail.com> Ævar Arnfjörð Bjarmason writes: > ...And this seems to conflict with what Junio's summarized in > xmqqvaapb3r1.fsf@gitster-ct.c.googlers.com. I.e. (if I'm reading it > correctly) it's not correct to say that we unlink the existing file, > then replace it, don't we create a new one, and then rename it in-place? No, my recollection was incorrect. entry.c::checkout_entry() does an unlink() then write_entry() to the final place without any rename-to-finish phase.