From f527a57c8a55f5fd315e1bc1cb338f5f4a9b20ae Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 01 Oct 2007 09:42:19 +0000 Subject: Add prefix parameter to cgit_diff_tree() This paramter can be used to restrict a diff to the specified path prefix. Signed-off-by: Lars Hjemli --- (limited to 'ui-diff.c') diff --git a/ui-diff.c b/ui-diff.c index 0be845f..11a2ff8 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -131,10 +131,9 @@ void cgit_print_diff(const char *new_rev, const char *old_rev) if (!commit2 || parse_commit(commit2)) cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(sha2))); } - html(""); html(""); html("
"); - cgit_diff_tree(sha2, sha1, filepair_cb); + cgit_diff_tree(sha2, sha1, filepair_cb, NULL); html("
"); } -- cgit v0.9.0.2