diff options
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c index 282cb396b..7f84235f4 100644 --- a/src/status.c +++ b/src/status.c @@ -142,7 +142,8 @@ int git_status_foreach_ext( diffopt.flags = diffopt.flags | GIT_DIFF_RECURSE_UNTRACKED_DIRS; if ((opts->flags & GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH) != 0) diffopt.flags = diffopt.flags | GIT_DIFF_DISABLE_PATHSPEC_MATCH; - /* TODO: support EXCLUDE_SUBMODULES flag */ + if ((opts->flags & GIT_STATUS_OPT_RECURSE_IGNORED_DIRS) != 0) + diffopt.flags = diffopt.flags | GIT_DIFF_RECURSE_IGNORED_DIRS; if (show != GIT_STATUS_SHOW_WORKDIR_ONLY && (err = git_diff_tree_to_index(&idx2head, repo, head, NULL, &diffopt)) < 0) |