]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-log.c
ui-log: add <span/> around commit decorations
[cgit.git] / ui-log.c
index 2aa12c34e967df47a07e9c609b04057ef4829bdb..6f1249bdea1b33185a6f27ac3fefdbe8402c9fea 100644 (file)
--- 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("<span class='decoration'>");
        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("</span>");
 }
 
 static void print_commit(struct commit *commit, struct rev_info *revs)