Diff between two blobs should take mode changes into account now.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Apr 22, 2007 at 23:56 UTC
43342941dd736fe06fe607a1594422cc8ba461a1
1 file changed
+1
-1
builtin-diff.c
+1
-1
@@ -32,7 +32,7 @@ static void stuff_change(struct diff_options *opt,
32
struct diff_filespec *one, *two;
33
34
if (!is_null_sha1(old_sha1) && !is_null_sha1(new_sha1) &&
35
- !hashcmp(old_sha1, new_sha1))
35
+ !hashcmp(old_sha1, new_sha1) && (old_mode == new_mode))
36
return;
37
38
if (opt->reverse_diff) {