]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: add ability to insert additional headers for paths
authorElijah Newren <newren@gmail.com>
Wed, 2 Feb 2022 02:37:34 +0000 (02:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Feb 2022 18:02:28 +0000 (10:02 -0800)
commit95433eeed9eac439eb21eb30105354b15e71302e
tree7eda4d13eb4ff66943c75658774038eea4f9ac8e
parent6054d1aac36d5769461fb73b15326a900e53edb9
diff: add ability to insert additional headers for paths

When additional headers are provided, we need to
  * add diff_filepairs to diff_queued_diff for each paths in the
    additional headers map which, unless that path is part of
    another diff_filepair already found in diff_queued_diff
  * format the headers (colorization, line_prefix for --graph)
  * make sure the various codepaths that attempt to return early
    if there are "no changes" take into account the headers that
    need to be shown.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
diff.h
log-tree.c