Re: [PATCH] git-apply doesn't handle same name patches well [V3]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Don Zickus
Date: Thursday, June 19, 2008 - 2:33 pm

On Tue, Jun 17, 2008 at 05:42:54PM -0700, Junio C Hamano wrote:

Yeah, I thought so too, but after debugging the problem, the 'lstat' in
check_preimage() fails to find the file on disk and exits with that error.

I was going to try to figure out a way to grab it from fn_cache but I
wasn't sure how much of the 'lstat' info is needed later.


Personally I think this case should be a failure.  I even attached a
testcase in my patch to make sure this failed.  I wasn't comfortable doing
this magic either.


Yes, poor choice of words.  I'll try to think of a something else.


Heh.  Maybe, but I didn't know the code well enough to do that.  Pointers?
I'll try to poke around and see what I can cleanup, but I will have to
rely on the mailing-list to make sure I did it correctly.

I was just making a note about which cases I wanted to skip and which ones
I wanted to process.  I can expand on it.  For example, patches that
contain normal diffs, file creations and git copies or ignored as don't
cares.  Only file deletions and git renames were interesting to me in the
code below.


Yeah, leftover code that was added when I ran into rename and copy
problems.


I don't know, can it?  You tell me.  I wasn't sure on the whole index
thing worked.

I'll respin the patch when I get some free time tomorrow or next week.

Cheers,
Don

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] git-apply doesn't handle same name patches wel ..., Johannes Schindelin, (Tue Jun 17, 2:40 am)
Re: [PATCH] git-apply doesn't handle same name patches wel ..., Don Zickus, (Thu Jun 19, 2:33 pm)