summaryrefslogtreecommitdiffabout
authorJohan Herland <johan@herland.net>2010-06-09 23:09:32 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-06-19 08:40:23 (UTC)
commitab42741c49d369e41c1e1915c6c024d79509f7d6 (patch) (unidiff)
tree428a18ea48b2b0c0a68f07a8a7fd7f61f590a247
parentc46e468dd229d5a20d99801072b4a8f8d970104f (diff)
downloadcgit-ab42741c49d369e41c1e1915c6c024d79509f7d6.zip
cgit-ab42741c49d369e41c1e1915c6c024d79509f7d6.tar.gz
cgit-ab42741c49d369e41c1e1915c6c024d79509f7d6.tar.bz2
ui-commit: Limit diff based on path limit in qry.path
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cmd.c2
-rw-r--r--ui-commit.c4
-rw-r--r--ui-commit.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd.c b/cmd.c
index a9e426a..893ae25 100644
--- a/cmd.c
+++ b/cmd.c
@@ -53,3 +53,3 @@ static void commit_fn(struct cgit_context *ctx)
53{ 53{
54 cgit_print_commit(ctx->qry.sha1); 54 cgit_print_commit(ctx->qry.sha1, ctx->qry.path);
55} 55}
diff --git a/ui-commit.c b/ui-commit.c
index b5e3c01..2f4c6d4 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -14,3 +14,3 @@
14 14
15void cgit_print_commit(char *hex) 15void cgit_print_commit(char *hex, const char *prefix)
16{ 16{
@@ -119,3 +119,3 @@ void cgit_print_commit(char *hex)
119 tmp = NULL; 119 tmp = NULL;
120 cgit_print_diff(ctx.qry.sha1, tmp, NULL); 120 cgit_print_diff(ctx.qry.sha1, tmp, prefix);
121 } 121 }
diff --git a/ui-commit.h b/ui-commit.h
index 40bcb31..8198b4b 100644
--- a/ui-commit.h
+++ b/ui-commit.h
@@ -3,3 +3,3 @@
3 3
4extern void cgit_print_commit(char *hex); 4extern void cgit_print_commit(char *hex, const char *prefix);
5 5