]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
ui-patch: Apply path limit to generated patch
[ps-cgit] / ui-commit.c
index 2f4c6d4bb59039efd0012eb656ac11143102c5fc..b3a206350330378c22b03e5f3ebc3c17f49a808d 100644 (file)
@@ -60,7 +60,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        tmp = sha1_to_hex(commit->object.sha1);
        cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp, 0);
        html(" (");
-       cgit_patch_link("patch", NULL, NULL, NULL, tmp);
+       cgit_patch_link("patch", NULL, NULL, NULL, tmp, prefix);
        html(") (");
        if ((ctx.qry.ssdiff && !ctx.cfg.ssdiff) || (!ctx.qry.ssdiff && ctx.cfg.ssdiff))
                cgit_commit_link("unidiff", NULL, NULL, ctx.qry.head, tmp, 1);