From 81509a228c7428abeb56ecacb45ccd8dc8fc6209 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 6 Jul 2016 22:42:36 +0200 Subject: css: highlight even table rows and skip empty rows This is stolen from kernel.org css [0]. [0] https://git.kernel.org/cgit-korg-0.10.1.css --- ui-log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index 6cc81a3..3220fd9 100644 --- a/ui-log.c +++ b/ui-log.c @@ -263,8 +263,9 @@ static void print_commit(struct commit *commit, struct rev_info *revs) html("\n"); - if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */ - html(""); + if ((revs->graph && !graph_is_commit_finished(revs->graph)) + || ctx.qry.showmsg) { /* Print a second table row */ + html(""); if (ctx.qry.showmsg) { /* Concatenate commit message + notes in msgbuf */ -- cgit v1.2.3-70-g09d2