]> git.ipfire.org Git - thirdparty/git.git/commit
diff: make the indent heuristic part of diff's basic configuration
authorMarc Branchaud <marcnarc@xiplink.com>
Mon, 8 May 2017 16:03:36 +0000 (12:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 May 2017 03:24:34 +0000 (12:24 +0900)
commitcf5e77223a012737930e1bbacc85c6423b03af77
treeb0d9208f7c7e7850a93d6158d732409b7eea5bec
parent027a3b943b444a3e3a76f9a89803fc10245b858f
diff: make the indent heuristic part of diff's basic configuration

This heuristic was originally introduced as an experimental feature,
and therefore part of the UI configuration.

But the user often sees diffs generated by plumbing commands like
diff-tree.  Moving the indent heuristic into diff's basic configuration
prepares the way for diff plumbing commands to respect the setting.

The heuristic itself merely makes the diffs more aesthetically
pleasing, without changing their correctness.  Scripts that rely on
the diff plumbing commands should not care whether or not the heuristic
is employed.

Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c