]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
ui-commit: Limit diff based on path limit in qry.path
[ps-cgit] / ui-commit.c
index b5e3c0159ba78ec080ee3f5cde8d2253c6cd8cbf..2f4c6d4bb59039efd0012eb656ac11143102c5fc 100644 (file)
@@ -12,7 +12,7 @@
 #include "ui-diff.h"
 #include "ui-log.h"
 
-void cgit_print_commit(char *hex)
+void cgit_print_commit(char *hex, const char *prefix)
 {
        struct commit *commit, *parent;
        struct commitinfo *info;
@@ -117,7 +117,7 @@ void cgit_print_commit(char *hex)
                        tmp = sha1_to_hex(commit->parents->item->object.sha1);
                else
                        tmp = NULL;
-               cgit_print_diff(ctx.qry.sha1, tmp, NULL);
+               cgit_print_diff(ctx.qry.sha1, tmp, prefix);
        }
        cgit_free_commitinfo(info);
 }