diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-28 19:55:37 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-08-28 18:39:52 -0400 |
commit | ef206124de957408c8d867e2f923d0611a7274fc (patch) | |
tree | bc9a45937d109c6c7d3b1c2052a486d28b4ae470 /src/iterator.h | |
parent | ed1c64464a4e3126eef5d74d2c14c19133fa9cd8 (diff) | |
download | libgit2-ef206124de957408c8d867e2f923d0611a7274fc.tar.gz |
Move filelist into the iterator handling itself.
Diffstat (limited to 'src/iterator.h')
-rw-r--r-- | src/iterator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/iterator.h b/src/iterator.h index 46e96f044..0ea2bc053 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -43,6 +43,11 @@ typedef struct { const char *start; const char *end; + /* paths to include in the iterator (literal). any paths not listed + * will be excluded. note that this vector may be resorted! + */ + git_vector *pathlist; + /* flags, from above */ unsigned int flags; } git_iterator_options; @@ -65,6 +70,8 @@ struct git_iterator { git_repository *repo; char *start; char *end; + git_vector *pathlist; + size_t pathlist_idx; int (*prefixcomp)(const char *str, const char *prefix); size_t stat_calls; unsigned int flags; |