mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 04:16:14 +00:00
git_index_add_all: don't recurse ignored dirs
No need to get reports about individual ignored files, having a single ignored directory delta is enough.
This commit is contained in:
parent
fa9a969d80
commit
cbfeecf33f
@ -2684,8 +2684,7 @@ static int index_apply_to_wd_diff(git_index *index, int action, const git_strarr
|
||||
opts.flags = GIT_DIFF_INCLUDE_TYPECHANGE;
|
||||
if (action == INDEX_ACTION_ADDALL) {
|
||||
opts.flags |= GIT_DIFF_INCLUDE_UNTRACKED |
|
||||
GIT_DIFF_RECURSE_UNTRACKED_DIRS |
|
||||
GIT_DIFF_RECURSE_IGNORED_DIRS;
|
||||
GIT_DIFF_RECURSE_UNTRACKED_DIRS;
|
||||
|
||||
if (flags == GIT_INDEX_ADD_FORCE)
|
||||
opts.flags |= GIT_DIFF_INCLUDE_IGNORED;
|
||||
|
Loading…
Reference in New Issue
Block a user