]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
submodule.c: migrate diff output to use emit_diff_symbol
authorStefan Beller <sbeller@google.com>
Fri, 30 Jun 2017 00:07:00 +0000 (17:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Jun 2017 20:13:02 +0000 (13:13 -0700)
commitf3597138df4de7b695dec42153bdfb2b8164d963
tree04da8aab03bbce26809b05e64a07f6ca562830f4
parent5af6ea957c60c2f828a84c1d3862d33a7bd5e58f
submodule.c: migrate diff output to use emit_diff_symbol

As the submodule process is no longer attached to the same file pointer
'o->file' as the superprojects process, there is a different result in
color.c::check_auto_color. That is why we need to pass coloring explicitly,
such that the submodule coloring decision will be made by the child process
processing the submodule. Only DIFF_SYMBOL_SUBMODULE_PIPETHROUGH contains
color, the other symbols are for embedding the submodule output into the
superprojects output.

Remove the colors from the function signatures, as all the coloring
decisions will be made either inside the child process or the final
emit_diff_symbol, but not in the functions driving the submodule diff.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
diff.h
submodule.c
submodule.h