From mboxrd@z Thu Jan 1 00:00:00 1970
From: john at keeping.me.uk (John Keeping)
Date: Sat, 18 May 2013 15:54:49 +0100
Subject: [PATCH] ui-log: add around commit decorations
Message-ID: <429d6da564d9b4ce7ab4b7edfd5fa56b99f4599e.1368888889.git.john@keeping.me.uk>
This helps projects that have a large number of tags to display them all
using custom CSS.
The default stylesheet has not been updated since what is useful for
projects with a lot of tags is not the same as what is useful for
projects with only a small number of decorations per commit.
Suggested-by: Konstantin Ryabitsev
Signed-off-by: John Keeping
---
ui-log.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui-log.c b/ui-log.c
index 2aa12c3..6f1249b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -61,6 +61,7 @@ void show_commit_decorations(struct commit *commit)
buf[sizeof(buf) - 1] = 0;
deco = lookup_decoration(&name_decoration, &commit->object);
+ html("");
while (deco) {
if (!prefixcmp(deco->name, "refs/heads/")) {
strncpy(buf, deco->name + 11, sizeof(buf) - 1);
@@ -94,6 +95,7 @@ void show_commit_decorations(struct commit *commit)
next:
deco = deco->next;
}
+ html("");
}
static void print_commit(struct commit *commit, struct rev_info *revs)
--
1.8.3.rc2.285.gfc18c2c