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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 20, 2016, 16:09 UTC
Message-ID
<xmqqpotkw9bi.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160420161028-mutt-send-email-mst@redhat.com>
"Michael S. Tsirkin" <mst@redhat.com> writes:
> FWIW IIRC what that commit is about is ability to reorder the chunks in
> a patch without changing patch-id. Not about keeping id stable across
> git revisions.

OK, but "reorder the chunks" is not meant to stay to be the _ONLY_ purpose for an option whose name is a broad "--[un]stable", but merely one (and only) possible cause of patch-id instability that happened to be noticed as an issue back then and was dealt with that commit, no? In other words, the intent of the "--stable" feature is to give a stable ID that is not affected by random end-user settings (e.g. diff.orderfile) and if somebody invents a new configurable knob in the future, they are supposed to pay attention to the "--stable" feature or existing users who do use "--stable" will be broken, no?

I can still buy "--stable is not about stability across versions of Git"--it makes our job easier ;-) I just want to make sure that "--stable is about stability inside a single version of Git that patch ID for the same commit will stay the same and unaffected by random end-user configuration knobs".

Which in turn would mean that we won't have to worry about this option in patch-id as long as we remove the diff.compactionheuristic configuration and command line option once the developers are done experimenting with their heuristics code.

Previous: Michael S. TsirkinNext: Jeff King
Message 15 of 20 in “xdiff: implement empty line chunk heuristic”
  1. 0/2 xdiff: implement empty line chunk heuristicStefan Beller, Apr 18, 2016
  2. 1/2 xdiff: add recs_match helper functionStefan Beller, Apr 18, 2016
  3. 2/2 xdiff: implement empty line chunk heuristicStefan Beller, Apr 18, 2016
  4. Jacob KellerApr 18, 2016
  5. Junio C HamanoApr 18, 2016
  6. Jeff KingApr 19, 2016
  7. Stefan BellerApr 19, 2016
  8. Jeff KingApr 19, 2016
  9. Stefan BellerApr 19, 2016
  10. Stefan BellerApr 19, 2016
  11. Jeff KingApr 19, 2016
  12. Jacob KellerApr 19, 2016
  13. Junio C HamanoApr 19, 2016
  14. Michael S. TsirkinApr 20, 2016
  15. Junio C HamanoApr 20, 2016
  16. Jeff KingApr 20, 2016
  17. Junio C HamanoApr 20, 2016
  18. Junio C HamanoApr 19, 2016
  19. Junio C HamanoApr 18, 2016
  20. 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.