revision.c: reduce implicit dependency the_repository
[gitweb.git] / combine-diff.c
index 9b43e557a1608145568f70b570038f6c202b5f1f..41ab5b01deafc44b1c526c883cd4438839c0e9d5 100644 (file)
@@ -987,7 +987,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
        const char *line_prefix = diff_line_prefix(opt);
 
        context = opt->context;
-       userdiff = userdiff_find_by_path(elem->path);
+       userdiff = userdiff_find_by_path(opt->repo->index, elem->path);
        if (!userdiff)
                userdiff = userdiff_find_by_name("default");
        if (opt->flags.allow_textconv)