diff options
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diff-cache.c b/diff-cache.c index a5deb8c7a4..b47b45a40d 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -71,7 +71,8 @@ static int show_modified(struct cache_entry *old, } oldmode = old->ce_mode; - if (mode == oldmode && !memcmp(sha1, old->sha1, 20)) + if (mode == oldmode && !memcmp(sha1, old->sha1, 20) && + detect_rename < 2) return 0; mode = ntohl(mode); |