summaryrefslogtreecommitdiffabout
path: root/shared.c
authorLars Hjemli <hjemli@gmail.com>2008-01-13 18:16:23 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-01-21 07:52:09 (UTC)
commit776200b1c10536174f68fc6599fc709ae620db54 (patch) (unidiff)
treed5b24090675c5ac7b0ca29459d3246dcb0d7c8af /shared.c
parent2122c696a34133a616b9ec6d72abe9eb89e728aa (diff)
downloadcgit-776200b1c10536174f68fc6599fc709ae620db54.zip
cgit-776200b1c10536174f68fc6599fc709ae620db54.tar.gz
cgit-776200b1c10536174f68fc6599fc709ae620db54.tar.bz2
Use GIT-1.5.4.rc4
Diffstat (limited to 'shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index bf0581f..f063894 100644
--- a/shared.c
+++ b/shared.c
@@ -489,13 +489,13 @@ void cgit_diff_tree(const unsigned char *old_sha1,
489 int prefixlen; 489 int prefixlen;
490 490
491 diff_setup(&opt); 491 diff_setup(&opt);
492 opt.output_format = DIFF_FORMAT_CALLBACK; 492 opt.output_format = DIFF_FORMAT_CALLBACK;
493 opt.detect_rename = 1; 493 opt.detect_rename = 1;
494 opt.rename_limit = cgit_renamelimit; 494 opt.rename_limit = cgit_renamelimit;
495 opt.recursive = 1; 495 DIFF_OPT_SET(&opt, RECURSIVE);
496 opt.format_callback = cgit_diff_tree_cb; 496 opt.format_callback = cgit_diff_tree_cb;
497 opt.format_callback_data = fn; 497 opt.format_callback_data = fn;
498 if (prefix) { 498 if (prefix) {
499 opt.nr_paths = 1; 499 opt.nr_paths = 1;
500 opt.paths = &prefix; 500 opt.paths = &prefix;
501 prefixlen = strlen(prefix); 501 prefixlen = strlen(prefix);