]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
ui-summary: Use default branch for readme if : prefix
[ps-cgit] / ui-log.c
index 93af0cee4d5f39c18e3e4727b8662b9f197f8391..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)
@@ -403,7 +405,6 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
                commit->parents = NULL;
        }
 
-       init_display_notes(NULL);
        for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) {
                print_commit(commit, &rev);
                free(commit->buffer);