diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-03-23 11:03:01 -0700 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-23 11:03:01 -0700 |
| commit | c8838ee92d85b3f027f8cabd87b98b682778cdbf (patch) | |
| tree | a86e275fc20572afdfe16977b575a73efda8e95a /src/status.c | |
| parent | 4b136a94d948e62634633092c9d1052c4b074e6c (diff) | |
| download | libgit2-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/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 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); } |
