From 43342941dd736fe06fe607a1594422cc8ba461a1 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 22 Apr 2007 23:56:22 -0700 Subject: [PATCH] Diff between two blobs should take mode changes into account now. Signed-off-by: Junio C Hamano --- builtin-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-diff.c b/builtin-diff.c index 4ba4d18f8..7f367b6b9 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -32,7 +32,7 @@ static void stuff_change(struct diff_options *opt, struct diff_filespec *one, *two; if (!is_null_sha1(old_sha1) && !is_null_sha1(new_sha1) && - !hashcmp(old_sha1, new_sha1)) + !hashcmp(old_sha1, new_sha1) && (old_mode == new_mode)) return; if (opt->reverse_diff) { -- 2.30.2