]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
t0108: Avoid unnecessary fork()
[ps-cgit] / ui-commit.c
index 6b41017a1cfc4d22b916abea56fbc37376e3e553..ef85a499e9fb7b98e7613fb69c5147f4fd0a67fe 100644 (file)
@@ -37,7 +37,6 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
-       init_display_notes(NULL);
        format_display_notes(sha1, &notes, PAGE_ENCODING, 0);
 
        load_ref_decorations(DECORATE_FULL_REFS);
@@ -138,7 +137,7 @@ void cgit_print_commit(char *hex, const char *prefix)
                        tmp = sha1_to_hex(commit->parents->item->object.sha1);
                else
                        tmp = NULL;
-               cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0);
+               cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0, 0);
        }
        strbuf_release(&notes);
        cgit_free_commitinfo(info);