]> git.ipfire.org Git - thirdparty/git.git/commit - range-diff.c
range-diff: add filename to inner diff
authorThomas Gummerer <t.gummerer@gmail.com>
Thu, 11 Jul 2019 16:08:50 +0000 (17:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 21:29:27 +0000 (14:29 -0700)
commit444e0969baaf2f68691ac7b49d5413d5e0d8d1fb
treee9cbfc3fb1ba6187a6d66520e23cbfeee8b23647
parentb66885a30cb84fc61986bc4eea805a31fdbea79a
range-diff: add filename to inner diff

In a range-diff it's not always clear which file a certain funcname of
the inner diff belongs to, because the diff header (or section header
as added in a previous commit) is not always visible in the
range-diff.

Add the filename to the inner diffs header, so it's always visible to
users.

This also allows us to add the filename + the funcname to the outer
diffs hunk headers using a custom userdiff pattern, which will be done
in the next commit.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c
t/t3206-range-diff.sh