]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
ui-log: color line changes
[ps-cgit] / ui-log.c
index d6d94f658391e57cdc11da36c7a0f7902d8716e1..c97b8e05e535740e3f73cb60dd515544d9dcce06 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -258,7 +258,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
        if (ctx.repo->enable_log_filecount)
                htmlf("</td><td>%d", files);
        if (ctx.repo->enable_log_linecount)
-               htmlf("</td><td>-%d/+%d", rem_lines, add_lines);
+               htmlf("</td><td><span class='deletions'>-%d</span>/"
+                       "<span class='insertions'>+%d</span>", rem_lines, add_lines);
 
        html("</td></tr>\n");