From: Fredrik Kuivinen <frekui@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Johannes Schindelin <johannes.schindelin@gmx.de> Alex Riesen"
<raa.lkml@gmail.com>, Git <git@vger.kernel.org>,
Josh ben Jore <jbenjore@whitepages.com>
Subject: Re: Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d
Date: Tue, 18 Aug 2009 23:35:17 +0200 [thread overview]
Message-ID: <4c8ef70908181435o1f9c6d0dncd84eb57b070b105@mail.gmail.com> (raw)
In-Reply-To: <7viqhaipg0.fsf@alter.siamese.dyndns.org>
On Thu, Jul 30, 2009 at 9:45 AM, Junio C Hamano<gitster@pobox.com> wrote:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> The codepath saw that one branch renamed dev-ubuntu/ stuff to dev/ at that
>> "unmerged" path, while the other branch added something else to the same
>> path, and decided to add that at an alternative path, and the intent of
>> that is so that it can safely resolve the "renamed" side to its final
>> destination. The added update_file() call is about finishing that
>> conflict resolution the code forgets to do.
>
> By the way, (I am CC'ing Fredrik, the author of the merge-recursive.py,
> the original implementation, even though I haven't seen him around here
> for a long time. Two "thieves" are also CC'ed), I think the way recursive
> strategy tries to handle rename/add and rename/rename conflicts by coming
> up with a temporary pathname is fundamentally wrong.
It was a long time ago I looked at the merge stuff (or any git code in
fact) so I
may have forgotten some things. However, as far as I can see your analysis is
correct and the temporary pathname stuff can be avoided when the conflicts
only involve files (and no directories). As you wrote, for D/F
conflicts one need
the temporary pathnames in order to build a tree which is used in the virtual
ancestor.
[Nice analysis of when temporary pathnames are needed and when they are not
needed snipped.]
- Fredrik
PS. I am sorry for the late reply.
next prev parent reply other threads:[~2009-08-18 21:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 22:23 Fw: Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d Josh ben Jore
2009-07-29 14:11 ` Josh ben Jore
2009-07-30 7:03 ` Junio C Hamano
2009-07-30 7:24 ` Josh ben Jore
2009-07-30 7:54 ` Junio C Hamano
[not found] ` <7viqhaipg0.fsf@alter.siamese.dyndns.org>
2009-07-30 8:00 ` Johannes Schindelin
2009-08-18 21:35 ` Fredrik Kuivinen [this message]
2009-07-31 0:38 ` [PATCH] merge-recursive: don't segfault while handling rename clashes Junio C Hamano
2009-07-29 16:10 ` Fw: Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d Clemens Buchacher
2009-07-29 20:45 ` Josh ben Jore
2009-07-30 6:34 ` Fw: " Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2009-07-28 21:56 Josh ben Jore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c8ef70908181435o1f9c6d0dncd84eb57b070b105@mail.gmail.com \
--to=frekui@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jbenjore@whitepages.com \
--cc=raa.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).