git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: KES <kes-kes@yandex.ua>, git <git@vger.kernel.org>
Subject: Re: Improving auto conflict resolving while merge
Date: Tue, 8 Sep 2015 18:03:57 -0400	[thread overview]
Message-ID: <20150908220357.GD24159@sigill.intra.peff.net> (raw)
In-Reply-To: <1059528292.20150908210809@yandex.ru>

On Tue, Sep 08, 2015 at 09:08:09PM -0300, Eugen Konkov wrote:

> JK> you _could_ argue that those changes are independent But it's close 
> JK> enough that there's a good chance the two need to be reconciled, 
> JK> and a human should at least take a look.
> 
> You are right and your words make sense. But this thought may apply
> for this: We have one method/function about 200 lines. One author make
> change at line 1 of this method and other on 199 line. Both changes
> are done in one method so **human should at least take a look**

Right, there is definitely a concept of "close enough" here, and git
cannot catch everything. Semantic changes may even happen across files
(e.g., function interface changes). So you do need to rely on things
like testing and compilation to verify a merge result.

But I would agree there is room for being able to tune the "closeness"
of changes that cause a conflict. Right now that isn't implemented, and
I'm not familiar enough with the xdiff merge code to even point you in
the right direction.

-Peff

      reply	other threads:[~2015-09-08 22:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 17:15 Improving auto conflict resolving while merge KES
2015-09-08  7:06 ` Jeff King
2015-09-09  0:08   ` Re[2]: " Eugen Konkov
2015-09-08 22:03     ` Jeff King [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=20150908220357.GD24159@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=kes-kes@yandex.ru \
    --cc=kes-kes@yandex.ua \
    /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).