[PATCH 1/1] ui-log: do not print empty table rows

Christian Hesse list at eworm.de
Thu Jul 7 09:12:59 CEST 2016


From: Christian Hesse <mail at eworm.de>

This saves some bandwidth and unbreaks line highlighting based on even
and odd line numbers.

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 ui-log.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui-log.c b/ui-log.c
index c97b8e0..6592267 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -263,7 +263,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 
 	html("</td></tr>\n");
 
-	if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */
+	if ((revs->graph && !graph_is_commit_finished(revs->graph))
+			|| ctx.qry.showmsg) { /* Print a second table row */
 		html("<tr class='nohover'>");
 
 		if (ctx.qry.showmsg) {
-- 
2.9.0



More information about the CGit mailing list