Re: [PATCH] git-apply: Do not free the wrong buffer when we convert the data for writeout
On Thu, 22 Mar 2007, Junio C Hamano wrote:
Show 8 quoted lines
>
> This patch also moves the call to open() up in the function, as
> the caller expects us to fail cheaply if leading directories
> need to be created (and then the caller creates them and calls
> us again). For that calling pattern, attempting conversion
> before opening the file adds unnecessary overhead.
>
> Signed-off-by: Junio C Hamano <junkio@cox.net>