apply: force matching at the beginning.
[gitweb.git] / builtin-diff.c
index b0c9cade02fef6d71bf45dd2fceb6d573778195e..de81b05e32f884053060448bc59c83ff70961c24 100644 (file)
@@ -122,7 +122,7 @@ static int builtin_diff_b_f(struct rev_info *revs,
        stuff_change(&revs->diffopt,
                     canon_mode(st.st_mode), canon_mode(st.st_mode),
                     blob[0].sha1, null_sha1,
-                    blob[0].name, path);
+                    path, path);
        diffcore_std(&revs->diffopt);
        diff_flush(&revs->diffopt);
        return 0;