]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-commit: use git raw note format
authorChris Mayo <aklhfex@gmail.com>
Sun, 26 May 2019 16:57:01 +0000 (17:57 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 15:13:24 +0000 (16:13 +0100)
Currently a commit note is shown as:

    Notes

      Notes:
          <note text>

Change to:

    Notes
      <note text>

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Reviewed-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-commit.c

index 5e885444c15a55af7634940abf88856dda2f3527..078723756a6197051d8dffa3bab8d19b85a6e8f7 100644 (file)
@@ -39,7 +39,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
-       format_display_notes(&oid, &notes, PAGE_ENCODING, 0);
+       format_display_notes(&oid, &notes, PAGE_ENCODING, 1);
 
        load_ref_decorations(NULL, DECORATE_FULL_REFS);