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

indent-heuristic, compaction-heuristic combination

From
NKNorbert Kiesel <nkiesel@gmail.com>
Date
Dec 17, 2016, 00:28 UTC
Message-ID
<CAM+g_NsDLKxWLZCDOgrh2O3W23PRP8Zxf-Zzf_twSw5VX3=G=A@mail.gmail.com>
Hi,

I started using compaction-heuristic with 2.9, and then also (or so I thought) enabled indent-heuristic with 2.11. Only after reading a comment in "Git rev news" I realized that these 2 options are mutually exclusive. I then checked the Git source code and saw that Git first checks the new indent-heuristic and then the old compaction-heuristic. Therefore, anyone who is as stupid as me and enabled both will always (and silently) end up with the older of the two.

Apart from better documentation (I know that both are marked experimental, but nevertheless): could we not swap the order in which they are tested so that the newer heuristic wins?

</nk>
Next: Jacob Keller
Message 1 of 4 in “indent-heuristic, compaction-heuristic combination”
  1. Norbert KieselDec 17, 2016
  2. Jacob KellerDec 17, 2016
  3. Jacob KellerDec 17, 2016
  4. Jacob KellerDec 17, 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.