]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff-lib.c
refs: print error message in debug output
[thirdparty/git.git] / diff-lib.c
index f9eadc4fc1a64b57fd0b506822c6396219763c92..ca085a03efc280deecd7cefce7ce00f5492a0d4c 100644 (file)
@@ -117,6 +117,10 @@ int run_diff_files(struct rev_info *revs, unsigned int option)
                if (!ce_path_match(istate, ce, &revs->prune_data, NULL))
                        continue;
 
+               if (revs->diffopt.prefix &&
+                   strncmp(ce->name, revs->diffopt.prefix, revs->diffopt.prefix_length))
+                       continue;
+
                if (ce_stage(ce)) {
                        struct combine_diff_path *dpath;
                        struct diff_filepair *pair;