path: root/Documentation/diff-options.txt
diff options
authorJunio C Hamano <>2016-06-10 17:58:55 (GMT)
committerJunio C Hamano <>2016-06-10 20:45:23 (GMT)
commit5580b271af518bae30148edfd42cc8459d8da384 (patch)
tree242a1fdf0b8cd5e259b38bab96f8866564188abd /Documentation/diff-options.txt
parent77085a616b0fe0eaba99dfe27247ae733f1570e9 (diff)
diff: disable compaction heuristic for now 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 <>
Diffstat (limited to 'Documentation/diff-options.txt')
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 3ad6404..9baf1ad 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -63,6 +63,13 @@ ifndef::git-format-patch[]
Synonym for `-p --raw`.
+ These are to help debugging and tuning an experimental
+ heuristic (which is off by default) that shifts the hunk
+ boundary in an attempt to make the resulting patch easier
+ to read.
Spend extra time to make sure the smallest possible
diff is produced.