]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
authors: specify maintainers
[ps-cgit] / ui-commit.c
index 6b41017a1cfc4d22b916abea56fbc37376e3e553..aa1892f630a7f2fce1c97deeb8d5bfc034b38a16 100644 (file)
@@ -1,6 +1,6 @@
 /* ui-commit.c: generate commit view
  *
 /* ui-commit.c: generate commit view
  *
- * Copyright (C) 2006 Lars Hjemli
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
@@ -37,7 +37,6 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
        }
        info = cgit_parse_commit(commit);
 
-       init_display_notes(NULL);
        format_display_notes(sha1, &notes, PAGE_ENCODING, 0);
 
        load_ref_decorations(DECORATE_FULL_REFS);
        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;
                        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);
        }
        strbuf_release(&notes);
        cgit_free_commitinfo(info);