aboutsummaryrefslogtreecommitdiff
path: root/Documentation/diff-config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-10 10:58:55 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-10 13:45:23 -0700
commit5580b271af518bae30148edfd42cc8459d8da384 (patch)
tree242a1fdf0b8cd5e259b38bab96f8866564188abd /Documentation/diff-config.txt
parent77085a616b0fe0eaba99dfe27247ae733f1570e9 (diff)
downloadgit-5580b271af518bae30148edfd42cc8459d8da384.tar.gz
git-5580b271af518bae30148edfd42cc8459d8da384.tar.xz
diff: disable compaction heuristic for now
http://lkml.kernel.org/g/20160610075043.GA13411@sigill.intra.peff.net reports that a change to add a new "function" with common ending with the existing one at the end of the file is shown like this: def foo do_foo_stuff() + common_ending() +end + +def bar + do_bar_stuff() + common_ending() end when the new heuristic is in use. In reality, the change is to add the blank line before "def bar" and everything below, which is what the code without the new heuristic shows. Disable the heuristics by default, and resurrect the documentation for the option and the configuration variables, while clearly marking the feature as still experimental. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-config.txt')
-rw-r--r--Documentation/diff-config.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/diff-config.txt b/Documentation/diff-config.txt
index 6eaa45271..6fb70c5d4 100644
--- a/Documentation/diff-config.txt
+++ b/Documentation/diff-config.txt
@@ -166,6 +166,11 @@ diff.tool::
include::mergetools-diff.txt[]
+diff.compactionHeuristic::
+ Set this option to `true` to enable an experimental heuristic that
+ shifts the hunk boundary in an attempt to make the resulting
+ patch easier to read.
+
diff.algorithm::
Choose a diff algorithm. The variants are as follows:
+