summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-23 11:03:01 -0700
committerRussell Belfer <arrbee@arrbee.com>2012-03-23 11:03:01 -0700
commitc8838ee92d85b3f027f8cabd87b98b682778cdbf (patch)
treea86e275fc20572afdfe16977b575a73efda8e95a /src
parent4b136a94d948e62634633092c9d1052c4b074e6c (diff)
downloadlibgit2-c8838ee92d85b3f027f8cabd87b98b682778cdbf.tar.gz
Restore default status recursion behavior
This gives `git_status_foreach()` back its old behavior of emulating the "--untracked=all" behavior of git. You can get any of the various --untracked options by passing flags to `git_status_foreach_ext()` but the basic version will keep the behavior it has always had.
Diffstat (limited to 'src')
-rw-r--r--src/status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c
index a0716e949..bec75294f 100644
--- a/src/status.c
+++ b/src/status.c
@@ -192,7 +192,8 @@ int git_status_foreach(
opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
opts.flags = GIT_STATUS_OPT_INCLUDE_IGNORED |
- GIT_STATUS_OPT_INCLUDE_UNTRACKED;
+ GIT_STATUS_OPT_INCLUDE_UNTRACKED |
+ GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS;
return git_status_foreach_ext(repo, &opts, callback, payload);
}