git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Alex Riesen
Message 2 of 2 in “Fix overwriting of the files to apply the patch to in git-apply”
  1. Fix overwriting of the files to apply the patch to in git-applyAlex Riesen, Apr 18, 2007
  2. Alex RiesenApr 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.