gitweb: Extract formatting of diff chunk header
commitf1310cf5e70ad54aa61c18f5740439c67be3df32
authorJakub Narebski <jnareb@gmail.com>
Sun, 30 Oct 2011 23:36:21 +0000 (31 00:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Oct 2011 22:22:55 +0000 (31 15:22 -0700)
tree7ff30ec3fe5b9e0687c1e3161d36f8567b236fe0
parent20a864cd835d5d3f559c3cddf5ac5c259bd61171
gitweb: Extract formatting of diff chunk header

Refactor main parts of HTML-formatting for diff chunk headers
(formatting means here adding links and syntax hightlighting) into
separate subroutines:

 * format_unidiff_chunk_header for ordinary diff,
 * format_cc_diff_chunk_header for combined diff
   (more than one parent)

This makes format_diff_line() subroutine easier to follow.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl