Merge branch 'sb/remove-gitview'
[gitweb.git] / diff-no-index.c
index 1f8999b9cabf52c85b63f27178023ff53b7567c3..f420786039d387d3a943d510c802ecd90c3ddf28 100644 (file)
@@ -281,6 +281,9 @@ void diff_no_index(struct rev_info *revs,
 
        DIFF_OPT_SET(&revs->diffopt, NO_INDEX);
 
+       DIFF_OPT_SET(&revs->diffopt, RELATIVE_NAME);
+       revs->diffopt.prefix = prefix;
+
        revs->max_count = -2;
        diff_setup_done(&revs->diffopt);