aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2010-06-10 01:09:32 +0200
committerLars Hjemli <hjemli@gmail.com>2010-06-19 10:40:23 +0200
commitab42741c49d369e41c1e1915c6c024d79509f7d6 (patch)
tree428a18ea48b2b0c0a68f07a8a7fd7f61f590a247 /ui-commit.c
parentc46e468dd229d5a20d99801072b4a8f8d970104f (diff)
downloadcgit-ab42741c49d369e41c1e1915c6c024d79509f7d6.tar.gz
cgit-ab42741c49d369e41c1e1915c6c024d79509f7d6.tar.xz
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 (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-commit.c b/ui-commit.c
index b5e3c01..2f4c6d4 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -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);
}