diff options
| author | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-11-07 20:32:50 +0200 |
|---|---|---|
| committer | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-11-07 21:34:54 +0200 |
| commit | 68182085694d76b97eb747960195917df69500c8 (patch) | |
| tree | 0f535ab30c389eaa54f84168bcf6e85309466e61 /src/status.c | |
| parent | 4e1b3b3b7186b017223b8302a51289ff92ccba25 (diff) | |
| download | libgit2-68182085694d76b97eb747960195917df69500c8.tar.gz | |
git_status_file now takes an exact path
This function has one output but can match multiple files, which can be
unexpected for the user, which would usually path the exact path of the
file he wants the status of.
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 cb2490042..720ccb7eb 100644 --- a/src/status.c +++ b/src/status.c @@ -494,7 +494,8 @@ int git_status_file( GIT_STATUS_OPT_RECURSE_IGNORED_DIRS | GIT_STATUS_OPT_INCLUDE_UNTRACKED | GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS | - GIT_STATUS_OPT_INCLUDE_UNMODIFIED; + GIT_STATUS_OPT_INCLUDE_UNMODIFIED | + GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH; opts.pathspec.count = 1; opts.pathspec.strings = &sfi.expected; |
