mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-23 09:14:24 +00:00
GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED
This commit is contained in:
parent
79d5b5c916
commit
7b491a7dea
@ -193,7 +193,10 @@ typedef enum {
|
|||||||
GIT_DIFF_SHOW_BINARY = (1 << 30),
|
GIT_DIFF_SHOW_BINARY = (1 << 30),
|
||||||
|
|
||||||
/** Include unreadable files in the diff */
|
/** Include unreadable files in the diff */
|
||||||
GIT_DIFF_INCLUDE_UNREADABLE = (1 << 31),
|
GIT_DIFF_INCLUDE_UNREADABLE = (1 << 27),
|
||||||
|
|
||||||
|
/** Include unreadable files in the diff */
|
||||||
|
GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED = (1 << 31),
|
||||||
} git_diff_option_t;
|
} git_diff_option_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -315,6 +315,8 @@ int git_status_list_new(
|
|||||||
diffopt.flags = diffopt.flags | GIT_DIFF_UPDATE_INDEX;
|
diffopt.flags = diffopt.flags | GIT_DIFF_UPDATE_INDEX;
|
||||||
if ((flags & GIT_STATUS_OPT_INCLUDE_UNREADABLE) != 0)
|
if ((flags & GIT_STATUS_OPT_INCLUDE_UNREADABLE) != 0)
|
||||||
diffopt.flags = diffopt.flags | GIT_DIFF_INCLUDE_UNREADABLE;
|
diffopt.flags = diffopt.flags | GIT_DIFF_INCLUDE_UNREADABLE;
|
||||||
|
if ((flags & GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKED) != 0)
|
||||||
|
diffopt.flags = diffopt.flags | GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED;
|
||||||
|
|
||||||
if ((flags & GIT_STATUS_OPT_RENAMES_FROM_REWRITES) != 0)
|
if ((flags & GIT_STATUS_OPT_RENAMES_FROM_REWRITES) != 0)
|
||||||
findopt.flags = findopt.flags |
|
findopt.flags = findopt.flags |
|
||||||
|
Loading…
Reference in New Issue
Block a user