]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff-interface: drop parse_hunk_header()
authorJeff King <peff@peff.net>
Fri, 2 Nov 2018 06:40:13 +0000 (02:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Nov 2018 04:14:35 +0000 (13:14 +0900)
commit5eade0746e1daf659a9559d804068f9f31614625
treeb82842386fcfd001c7bd89a972af6d0da42f1b39
parentd2eb80935a4e93cd775b5e8dc3f07fa1cd21d330
xdiff-interface: drop parse_hunk_header()

This function was used only for parsing the hunk headers generated by
xdiff. Now that we can use hunk callbacks to get that information
directly, it has outlived its usefulness.

Note to anyone who wants to resurrect it: the "len" parameter was
totally unused, meaning that the function could read past the end of the
"line" array. In practice this never happened, because we only used it
to parse xdiff's generated header lines. But it would be dangerous to
use it for other cases without fixing this defect.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c
xdiff-interface.h