mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-26 11:11:45 +00:00
Implement GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED
This commit is contained in:
parent
7b491a7dea
commit
5e6542003e
@ -995,7 +995,10 @@ static int handle_unmatched_new_item(
|
||||
}
|
||||
|
||||
else if (nitem->mode == GIT_FILEMODE_UNREADABLE) {
|
||||
delta_type = GIT_DELTA_UNREADABLE;
|
||||
if (DIFF_FLAG_IS_SET(diff, GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED))
|
||||
delta_type = GIT_DELTA_UNTRACKED;
|
||||
else
|
||||
delta_type = GIT_DELTA_UNREADABLE;
|
||||
}
|
||||
|
||||
/* Actually create the record for this item if necessary */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user