diff options
| author | Russell Belfer <rb@github.com> | 2012-04-13 15:00:29 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-04-13 15:00:29 -0700 |
| commit | 14a513e05866721f5ceba18cf425568d2f6af143 (patch) | |
| tree | 4c31553a2c971adf579d2c5c287749ce45949c8c /src/status.c | |
| parent | d1f331564da9d6110b80b538a501da0c66e59142 (diff) | |
| download | libgit2-14a513e05866721f5ceba18cf425568d2f6af143.tar.gz | |
Add support for pathspec to diff and status
This adds preliminary support for pathspecs to diff and status.
The implementation is not very optimized (it still looks at
every single file and evaluated the the pathspec match against
them), but it works.
Diffstat (limited to 'src/status.c')
| -rw-r--r-- | src/status.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c index 95e4588b7..0732d4a9f 100644 --- a/src/status.c +++ b/src/status.c @@ -205,6 +205,7 @@ int git_status_foreach( { git_status_options opts; + memset(&opts, 0, sizeof(opts)); opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR; opts.flags = GIT_STATUS_OPT_INCLUDE_IGNORED | GIT_STATUS_OPT_INCLUDE_UNTRACKED | |
