xdiff: factor out get_func_line()
commitf99f4b3667a83f870565bb140711f0e585999108
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 9 Oct 2011 11:34:49 +0000 (9 13:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2011 18:59:30 +0000 (10 11:59 -0700)
tree16eb3e201c76253dd70e03f247e58b24302e5fdc
parent703f05ad5835cff92b12c29aecf8d724c8c847e2
xdiff: factor out get_func_line()

Move the code to search for a function line to be shown in the hunk
header into its own function and to make returning the length-limited
result string easier, introduce struct func_line.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xemit.c