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

bug: compactionheuristic config var case issue

From
BLBrian Lalor <blalor@bravo5.org>
Date
Jun 15, 2016, 10:39 UTC
Message-ID
<8C006106-EED2-48B5-B9A5-6FCEB64597C1@bravo5.org>
I’m very happy to see the new compaction heuristic option; it’s the way I always thought diffs should read!  
The config option in the documentation references “diff.compactionHeuristic”, but diff.c does a case-sensitive comparison on “diff.compactionheuristic” (note the case of the “h” in “heuristic”) and `git diff` does not honor the config.  Confusingly, `git config diff.compactionheuristic` returns true when diff.compactionHeuristic is set in ~/.gitconfig.  When diff.compactionheuristic is set to true in ~/.gitconfig, the desired behavior is achieved.
Thank you all for Git: it’s hard to remember the terrible world we lived in before it existed. :-)
Next: Duy Nguyen
Message 1 of 3 in “bug: compactionheuristic config var case issue”
  1. Brian LalorJun 15, 2016
  2. Duy NguyenJun 15, 2016
  3. Jeff KingJun 16, 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.