Skip to content

Commit

Permalink
Diff between two blobs should take mode changes into account now.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Apr 24, 2007
1 parent 01618a3 commit 4334294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4334294

Please sign in to comment.