summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-07-07 09:10:47 +0200
committerChristian Hesse <mail@eworm.de>2016-10-12 14:18:39 +0200
commit16e83b9df0a45687e0cae508f332aaffe276079f (patch)
tree66e39730713948f585f8ff6194d7fa4ad7dab913
parent6565f1c8a3c15afbe451cbf7e665fd073c5b1675 (diff)
downloadcgit-16e83b9df0a45687e0cae508f332aaffe276079f.tar.gz
ui-log: do not print empty table rows
This saves some bandwidth and unbreaks line highlighting based on even and odd line numbers.
-rw-r--r--ui-log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-log.c b/ui-log.c
index 6cc81a3..c4abf52 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) {