]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-patch.c
ui-patch.c: Fix signature delimiter
[ps-cgit] / ui-patch.c
index 1dbb39d47ed5631b77c129928487265ee20563f7..6df105e397a5e8589eecbef7db2489ca8345ed5c 100644 (file)
@@ -72,6 +72,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
        rev.verbose_header = 1;
        rev.diff = 1;
        rev.show_root_diff = 1;
+       rev.max_parents = 1;
        rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
        setup_revisions(ARRAY_SIZE(rev_argv), (const char **)rev_argv, &rev,
                        NULL);
@@ -79,6 +80,6 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
 
        while ((commit = get_revision(&rev)) != NULL) {
                log_tree_commit(&rev, commit);
-               printf("--\ncgit %s\n", cgit_version);
+               printf("-- \ncgit %s\n", cgit_version);
        }
 }