]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
ui-log: Preserve path limit in outgoing links
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index a9e426a9a223add80d990886936b5d42be8cef85..605876bd88385e7065f2eb631dac0a50e25d112f 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -51,7 +51,7 @@ static void blob_fn(struct cgit_context *ctx)
 
 static void commit_fn(struct cgit_context *ctx)
 {
 
 static void commit_fn(struct cgit_context *ctx)
 {
-       cgit_print_commit(ctx->qry.sha1);
+       cgit_print_commit(ctx->qry.sha1, ctx->qry.path);
 }
 
 static void diff_fn(struct cgit_context *ctx)
 }
 
 static void diff_fn(struct cgit_context *ctx)
@@ -90,7 +90,7 @@ static void repolist_fn(struct cgit_context *ctx)
 
 static void patch_fn(struct cgit_context *ctx)
 {
 
 static void patch_fn(struct cgit_context *ctx)
 {
-       cgit_print_patch(ctx->qry.sha1);
+       cgit_print_patch(ctx->qry.sha1, ctx->qry.path);
 }
 
 static void plain_fn(struct cgit_context *ctx)
 }
 
 static void plain_fn(struct cgit_context *ctx)