]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/diff-files.c
diff: have the diff-* builtins configure diff before initializing revisions
authorMarc Branchaud <marcnarc@xiplink.com>
Mon, 8 May 2017 16:03:37 +0000 (12:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 May 2017 03:24:35 +0000 (12:24 +0900)
commit37590ce3c535f92e28da83893f843cc0099873bf
treeee64e6f2727e82fc55543c6fc388d23d70427ab8
parentcf5e77223a012737930e1bbacc85c6423b03af77
diff: have the diff-* builtins configure diff before initializing revisions

This matches how the diff Porcelain works.  It makes the plumbing commands
respect diff's configuration options, such as indentHeuristic, because
init_revisions() calls diff_setup() which fills in the diff_options struct.

Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff-files.c
builtin/diff-index.c
builtin/diff-tree.c
t/t4061-diff-indent.sh