mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 18:52:21 +00:00
Don't need to duplicate this code.
This commit is contained in:
parent
7c4bbbf46d
commit
c4366096d4
@ -200,12 +200,8 @@ static git_diff_delta *diff_delta__last_for_item(
|
||||
if (git_oid__cmp(&delta->new_file.id, &item->id) == 0)
|
||||
return delta;
|
||||
break;
|
||||
case GIT_DELTA_UNTRACKED:
|
||||
if (diff->strcomp(delta->new_file.path, item->path) == 0 &&
|
||||
git_oid__cmp(&delta->new_file.id, &item->id) == 0)
|
||||
return delta;
|
||||
break;
|
||||
case GIT_DELTA_UNREADABLE:
|
||||
case GIT_DELTA_UNTRACKED:
|
||||
if (diff->strcomp(delta->new_file.path, item->path) == 0 &&
|
||||
git_oid__cmp(&delta->new_file.id, &item->id) == 0)
|
||||
return delta;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user