author | Jakub Narebski <jnareb@gmail.com> | |
Sun, 30 Oct 2011 23:36:21 +0000 (00:36 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 31 Oct 2011 22:22:55 +0000 (15:22 -0700) | ||
commit | f1310cf5e70ad54aa61c18f5740439c67be3df32 | |
tree | 7ff30ec3fe5b9e0687c1e3161d36f8567b236fe0 | tree | snapshot |
parent | 20a864cd835d5d3f559c3cddf5ac5c259bd61171 | commit | diff |
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>
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 | diff | blob | history |