git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Barkalow <barkalow@iabervon.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org, Alex Riesen <raa.lkml@gmail.com>,
	Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: [PATCH 2/5] Treat D/F conflict entry more carefully in unpack-trees.c::threeway_merge()
Date: Sat, 7 Apr 2007 20:29:24 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0704072018321.27922@iabervon.org> (raw)
In-Reply-To: <7vfy7bbu3a.fsf@assigned-by-dhcp.cox.net>

On Sat, 7 Apr 2007, Junio C Hamano wrote:

> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> > On Sat, 7 Apr 2007, Junio C Hamano wrote:
> >
> >> This fixes three buglets in threeway_merge() regarding D/F
> >> conflict entries.
> >> 
> >> * After finishing with path D and handling path D/F, some stages
> >>   have D/F conflict entry which are obviously non-NULL.  For the
> >>   purpose of determining if the path D/F is missing in the
> >>   ancestor, they should not be taken into account.
> >> 
> >> * D/F conflict entry is a phony entry and does not record the
> >>   path being processed, so do not pick up the name from there.
> >
> > This bit is unnecessary, because the first bit means we treat D/F conflict 
> > as missing in that conditional, and don't count it as an entry at all, let 
> > alone one with a useful name.
> 
> I am not sure about what you mean by "first bit"

Your first bullet point. You must have added the check to the path line 
before you added the same check to the condition a few lines above, making 
this check no longer necessary.

                if (!stages[i] || stages[i] == o->df_conflict_entry)
                        any_anc_missing = 1;
                else {

If we get here, stages[i] != o->df_conflict_entry...

                        if (!path && stages[i] != o->df_conflict_entry)
                                path = stages[i]->name;
                        no_anc_exists = 0;
                }

So you don't need the second check if you've got the first one, and the 
first one makes more sense anyway; for the purposes of this entire 
section, we want df_conflict_entry to count as missing, and we don't look 
at the paths of missing entries regardless of whether they're specially 
marked.

	-Daniel
*This .sig left intentionally blank*

      reply	other threads:[~2007-04-08  0:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07 14:40 [PATCH 2/5] Treat D/F conflict entry more carefully in unpack-trees.c::threeway_merge() Junio C Hamano
2007-04-07 19:08 ` Daniel Barkalow
2007-04-08  0:14   ` Junio C Hamano
2007-04-08  0:29     ` Daniel Barkalow [this message]

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=Pine.LNX.4.64.0704072018321.27922@iabervon.org \
    --to=barkalow@iabervon.org \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    --cc=junkio@cox.net \
    --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).