Re: [PATCH] Fix overwriting of the files to apply the patch to in git-apply
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Apr 18, 2007, 16:33 UTC
- Message-ID
- <81b0412b0704180933t7f161bcah57bce6dbea43a710@mail.gmail.com>
- In-Reply-To
- <81b0412b0704180929h7960bedeje87050fa5ca543b0@mail.gmail.com>
On 4/18/07, Alex Riesen <raa.lkml@gmail.com> 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.