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

[PATCH] diff: 'diff.indentHeuristic' is no longer experimental

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 15, 2019, 09:12 UTC
Message-ID
<20190815091245.16525-1-szeder.dev@gmail.com>
In-Reply-To
<58aafeaa-72b0-25ce-27b6-f8480fe48b5e@topbug.net>

The indent heuristic started out as experimental, but it's now our default diff heuristic since 33de716387 (diff: enable indent heuristic by default, 2017-05-08). Alas, that commit didn't update the documentation, and the description of the 'diff.indentHeuristic' configuration variable still implies that it's experimental and not the default.

Update the description of 'diff.indentHeuristic' to make it clear that it's the default diff heuristic.

The description of the related '--indent-heuristic' option has already been updated in bab76141da (diff: --indent-heuristic is no longer experimental, 2017-10-29).

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
---
 Documentation/config/diff.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt
index 5afb5a2cbc..ff09f1cf73 100644
--- a/Documentation/config/diff.txt
+++ b/Documentation/config/diff.txt
@@ -189,7 +189,7 @@ diff.guitool::
 include::../mergetools-diff.txt[]
 
 diff.indentHeuristic::
-	Set this option to `true` to enable experimental heuristics
+	Set this option to `false` to disable the default heuristics
 	that shift diff hunk boundaries to make patches easier to read.
 
 diff.algorithm::
-- 
2.23.0.rc2.366.g16015fd804
Previous: Hong XuNext: Jeff King
Message 2 of 4 in “Is diff.indentHeuristic still experimental?”
  1. Hong XuAug 15, 2019
  2. diff: 'diff.indentHeuristic' is no longer experimentalSZEDER Gábor, Aug 15, 2019
  3. Jeff KingAug 15, 2019
  4. Junio C HamanoAug 15, 2019

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.