git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

From
Stefan Beller <sbeller@google.com>
Date
Apr 18, 2016, 19:33 UTC
Message-ID
<CAGZ79kZDg9a=xr1gYa=kooYvk-ufyGAVubqbRoRpOnC38FzLSg@mail.gmail.com>
In-Reply-To
<xmqq60ve67sc.fsf@gitster.mtv.corp.google.com>
On Mon, Apr 18, 2016 at 12:22 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Jacob Keller <jacob.keller@gmail.com> writes:
>
>> I think we're going to make use of xdl_blankline instead of this or
>> our own "is_emptyline"
>
> OK, so perhaps either of you two can do a final version people can
> start having fun with?

Junios proposal seems to be on top of my latest series sent out, I'll squash it in and send it out as a final version if you don't mind (though I'll do it later today; currently diving into Gerrits Java)

>
> By the way, I really do not want to see something this low-level to
> be end-user tweakable with "one bit enable/disable"; the end users
> shouldn't have to bother [1].
Ok. Thanks for fixing that mistake.
> I left it in but renamed after "what"
> it enables/disables, not "how" the enabled thing works, to clarify
> that we have this only as a developers' aid.
>
> *1* I am fine with --compaction-heuristic=(shortest|blank|...) that
> allows a choice among many as a developers' aid, but I do not think
> this topic is there yet.
This doesn't bode well with
    > +--compaction-heuristic::
    > +--no-compaction-heuristic::
in the future? I'd rather have
    +--compaction-heuristic=none
    +--compaction-heuristic=lastEmptyLine
such that we don't have to worry about further experiments (or matured
heuristics) later?
Previous: Junio C Hamano
Message 11 of 11 in “implement shortest line diff chunk heuristic”
  1. 0/2 implement shortest line diff chunk heuristicStefan Beller, Apr 15, 2016
  2. 1/2 xdiff: add recs_match helper functionStefan Beller, Apr 15, 2016
  3. 2/2 xdiff: implement empty line chunk heuristicStefan Beller, Apr 15, 2016
  4. Jacob KellerApr 15, 2016
  5. Jacob KellerApr 15, 2016
  6. Stefan BellerApr 15, 2016
  7. Junio C HamanoApr 16, 2016
  8. Stefan BellerApr 16, 2016
  9. Jacob KellerApr 16, 2016
  10. Junio C HamanoApr 18, 2016
  11. Stefan BellerApr 18, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.