mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-03 18:08:01 +00:00
diff: don't do rename detection on submodules
This commit is contained in:
parent
95367366b2
commit
191474a1f4
@ -553,8 +553,8 @@ static int similarity_measure(
|
||||
|
||||
*score = -1;
|
||||
|
||||
/* don't try to compare files of different types */
|
||||
if (GIT_MODE_TYPE(a_file->mode) != GIT_MODE_TYPE(b_file->mode))
|
||||
/* don't try to compare things that aren't files */
|
||||
if (!GIT_MODE_ISBLOB(a_file->mode) || !GIT_MODE_ISBLOB(b_file->mode))
|
||||
return 0;
|
||||
|
||||
/* if exact match is requested, force calculation of missing OIDs now */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user