]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
scan_path(): Do not recurse into hidden directories by default
[ps-cgit] / shared.c
index 72ac140d605cfe9b0144d757e041e9dfbb07e5ee..765cd276dd9b0eb947bed9820793d98a18a45a16 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -338,13 +338,13 @@ void cgit_diff_tree(const unsigned char *old_sha1,
        diff_flush(&opt);
 }
 
-void cgit_diff_commit(struct commit *commit, filepair_fn fn)
+void cgit_diff_commit(struct commit *commit, filepair_fn fn, const char *prefix)
 {
        unsigned char *old_sha1 = NULL;
 
        if (commit->parents)
                old_sha1 = commit->parents->item->object.sha1;
-       cgit_diff_tree(old_sha1, commit->object.sha1, fn, NULL,
+       cgit_diff_tree(old_sha1, commit->object.sha1, fn, prefix,
                       ctx.qry.ignorews);
 }