From cbfeecf33f4e3e23370687ef92591f3206d4c58f Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 20 May 2015 20:13:45 -0400 Subject: [PATCH] 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. --- src/index.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.c b/src/index.c index 7c0e6cfbc..561fe73c4 100644 --- a/src/index.c +++ b/src/index.c @@ -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;