diff options
| author | yorah <yoram.harmelin@gmail.com> | 2012-07-23 18:16:09 +0200 |
|---|---|---|
| committer | yorah <yoram.harmelin@gmail.com> | 2012-07-24 14:03:09 +0200 |
| commit | a1773f9d89887d299248d15b43953d3fa494a025 (patch) | |
| tree | 4b204fca95ff0e11766eb3d570c919874d9908db /src/status.c | |
| parent | ffbc689c8768c66cddf9ef3ab6c88c41ecf4c1ab (diff) | |
| download | libgit2-a1773f9d89887d299248d15b43953d3fa494a025.tar.gz | |
Add flag to turn off pathspec testing for diff and status
Diffstat (limited to 'src/status.c')
| -rw-r--r-- | src/status.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c index 633082c09..d78237689 100644 --- a/src/status.c +++ b/src/status.c @@ -99,6 +99,8 @@ int git_status_foreach_ext( diffopt.flags = diffopt.flags | GIT_DIFF_INCLUDE_UNMODIFIED; if ((opts->flags & GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS) != 0) 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 (show != GIT_STATUS_SHOW_WORKDIR_ONLY && |
