From: Alex Riesen Date: Wed, 18 Apr 2007 16:33:21 GMT Subject: Re: [PATCH] Fix overwriting of the files to apply the patch to in git-apply Message-ID: <81b0412b0704180933t7f161bcah57bce6dbea43a710@mail.gmail.com> In-Reply-To: <81b0412b0704180929h7960bedeje87050fa5ca543b0@mail.gmail.com> On 4/18/07, Alex Riesen wrote: > The decision to check for directory first looks suboptimal. > Why not try to _rename_ first and if that fails check if we've got a directory? > An existing file seems to be more of a common case. Simplier to code and read, for one.