]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
range-diff: suppress line count in outer diff
authorThomas Gummerer <t.gummerer@gmail.com>
Thu, 11 Jul 2019 16:08:48 +0000 (17:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 21:29:27 +0000 (14:29 -0700)
commit430be36eb53b042c447201c778b5398df887022f
tree06f871ccc81faf1069e5735d91c6e7b784d3a1f1
parente1db26308413f5da2cef2c9c3869257d1ed6336b
range-diff: suppress line count in outer diff

The line count in the outer diff's hunk headers of a range diff is not
all that interesting.  It merely shows how far along the inner diff
are on both sides.  That number is of no use for human readers, and
range-diffs are not meant to be machine readable.

In a subsequent commit we're going to add some more contextual
information such as the filename corresponding to the diff to the hunk
headers.  Remove the unnecessary information, and just keep the "@@"
to indicate that a new hunk of the outer diff is starting.

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