History

ui-log: color line changes

Christian Hesse committed 10 years ago

Commit 4fb49861 parent 9984e7a2 files · +11 −1Browse files

Unified · Split

2 files
  1. cgit.css +9 −0
  2. ui-log.c +2 −1
cgit.css+9−0
@@ -590,6 +590,15 @@ div#cgit span.age-months { · 589 unmodified lines
590590 div#cgit span.age-years {
591591 color: #bbb;
592592 }
593+
594+div#cgit span.insertions {
595+ color: #080;
596+}
597+
598+div#cgit span.deletions {
599+ color: #800;
600+}
601+
593602 div#cgit div.footer {
594603 margin-top: 0.5em;
595604 text-align: center;
ui-log.c+2−1
@@ -258,7 +258,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs) · 257 unmodified lines
258258 if (ctx.repo->enable_log_filecount)
259259 htmlf("</td><td>%d", files);
260260 if (ctx.repo->enable_log_linecount)
261− htmlf("</td><td>-%d/+%d", rem_lines, add_lines);
261+ htmlf("</td><td><span class='deletions'>-%d</span>/"
262+ "<span class='insertions'>+%d</span>", rem_lines, add_lines);
262263
263264 html("</td></tr>\n");
264265

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t