From: Michael Haggerty <mhagger@alum.mit.edu>
To: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>
Cc: Jacob Keller <jacob.keller@gmail.com>,
Jacob Keller <jacob.e.keller@intel.com>,
Git mailing list <git@vger.kernel.org>,
Norbert Kiesel <nkiesel@gmail.com>
Subject: Re: [PATCH] diff: prefer indent heuristic over compaction heuristic
Date: Sat, 24 Dec 2016 13:55:33 +0100 [thread overview]
Message-ID: <653b67e6-9dba-d331-c396-932a59cdb4da@alum.mit.edu> (raw)
In-Reply-To: <xmqq8tr6e46o.fsf@gitster.mtv.corp.google.com>
On 12/23/2016 10:17 PM, Junio C Hamano wrote:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> I guess both you and Michael are in favor of just removing compaction
>> variant without any renames, so let me prepare a reroll and queue
>> that instead. We can flip the default perhaps one release later.
>
> -- >8 --
> Subject: [PATCH] diff: retire "compaction" heuristics
>
> When a patch inserts a block of lines, whose last lines are the
> same as the existing lines that appear before the inserted block,
> "git diff" can choose any place between these existing lines as the
> boundary between the pre-context and the added lines (adjusting the
> end of the inserted block as appropriate) to come up with variants
> of the same patch, and some variants are easier to read than others.
>
> We have been trying to improve the choice of this boundary, and Git
> 2.11 shipped with an experimental "compaction-heuristic". Since
> then another attempt to improve the logic further resulted in a new
> "indent-heuristic" logic. It is agreed that the latter gives better
> result overall, and the former outlived its usefulness.
>
> Retire "compaction", and keep "indent" as an experimental feature.
> The latter hopefully will be turned on by default in a future
> release, but that should be done as a separate step.
The whole patch looks good to me. Thanks for taking care of this.
Michael
next prev parent reply other threads:[~2016-12-24 12:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-17 0:54 [PATCH] diff: prefer indent heuristic over compaction heuristic Jacob Keller
2016-12-17 1:30 ` Junio C Hamano
2016-12-17 8:02 ` Jacob Keller
2016-12-22 21:12 ` Junio C Hamano
2016-12-22 21:41 ` Jacob Keller
2016-12-22 22:43 ` Junio C Hamano
2016-12-23 7:22 ` Jeff King
2016-12-23 8:12 ` Jacob Keller
2016-12-23 16:19 ` Jeff King
2016-12-23 17:45 ` Junio C Hamano
2016-12-23 21:17 ` Junio C Hamano
2016-12-23 22:21 ` Jeff King
2016-12-23 22:23 ` Jacob Keller
2016-12-24 12:55 ` Michael Haggerty [this message]
2017-04-27 21:17 ` Stefan Beller
2017-04-28 8:11 ` Jeff King
2017-04-28 8:40 ` Martin Liška
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=653b67e6-9dba-d331-c396-932a59cdb4da@alum.mit.edu \
--to=mhagger@alum.mit.edu \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jacob.e.keller@intel.com \
--cc=jacob.keller@gmail.com \
--cc=nkiesel@gmail.com \
--cc=peff@peff.net \
/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).