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

Re: [ANNOUNCE] Git v2.11.0-rc0

From
Stefan Beller <sbeller@google.com>
Date
Nov 1, 2016, 21:41 UTC
Message-ID
<CAGZ79kZHajTxFRbOftH==UAXhbH7RSA_jYWO-aQXhW2aSRdUFA@mail.gmail.com>
In-Reply-To
<xmqqzilinanp.fsf@gitster.mtv.corp.google.com>
On Tue, Nov 1, 2016 at 2:38 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
>
> -diff.indentHeuristic::
>  diff.compactionHeuristic::
>         Set one of these options to `true` to enable one of two
>         experimental heuristics that shift diff hunk boundaries to
We would need to reword this as well, as there will be only one heuristic left?
Show 25 quoted lines
> --- a/xdiff/xdiffi.c
> +++ b/xdiff/xdiffi.c
> @@ -906,22 +906,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
>                                 if (group_previous(xdfo, &go))
>                                         xdl_bug("group sync broken sliding to match");
>                         }
> -               } else if ((flags & XDF_COMPACTION_HEURISTIC) && blank_lines) {
> -                       /*
> -                        * Compaction heuristic: if it is possible to shift the
> -                        * group to make its bottom line a blank line, do so.
> -                        *
> -                        * As we already shifted the group forward as far as
> -                        * possible in the earlier loop, we only need to handle
> -                        * backward shifts, not forward ones.
> -                        */
> -                       while (!is_blank_line(xdf->recs[g.end - 1], flags)) {
> -                               if (group_slide_up(xdf, &g, flags))
> -                                       xdl_bug("blank line disappeared");
> -                               if (group_previous(xdfo, &go))
> -                                       xdl_bug("group sync broken sliding to blank line");
> -                       }
> -               } else if (flags & XDF_INDENT_HEURISTIC) {
> +               } else if (flags & XDF_COMPACTION_HEURISTIC) {
>                         /*
>                          * Indent heuristic: a group of pure add/delete lines
This comment may need adjustment as well (though we could go without)
>                          * implies two splits, one between the end of the "before"
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 16 in “[ANNOUNCE] Git v2.11.0-rc0”
  1. Junio C HamanoOct 31, 2016
  2. Simon RuderichOct 31, 2016
  3. Patrick SteinhardtNov 1, 2016
  4. Jeff KingNov 1, 2016
  5. Junio C HamanoNov 1, 2016
  6. Jeff KingNov 1, 2016
  7. Junio C HamanoNov 1, 2016
  8. Junio C HamanoNov 1, 2016
  9. Stefan BellerNov 1, 2016
  10. Junio C HamanoNov 1, 2016
  11. Junio C HamanoNov 1, 2016
  12. Jeff KingNov 1, 2016
  13. Michael HaggertyNov 2, 2016
  14. Stefan BellerNov 1, 2016
  15. Jacob KellerNov 2, 2016
  16. Stefan BellerNov 1, 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.