diff options
| author | Vicent Martà <vicent@github.com> | 2013-06-21 14:29:21 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-06-21 14:29:21 -0700 |
| commit | 5d669f0a96ab858750f4fdd90f138225946934c2 (patch) | |
| tree | 08a22c76140d116551afe73a7f996ae53a1753e8 /src/iterator.h | |
| parent | 00197c34d6385a2de3970c9f820714064c5bf27f (diff) | |
| parent | d4f98ba4f124a836ed964a71137a6dae28358704 (diff) | |
| download | libgit2-5d669f0a96ab858750f4fdd90f138225946934c2.tar.gz | |
Merge pull request #1665 from arrbee/checkout-target-directory
Add target directory to checkout options
Diffstat (limited to 'src/iterator.h')
| -rw-r--r-- | src/iterator.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/iterator.h b/src/iterator.h index 493ff4b2a..ea88fa6a2 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -79,15 +79,26 @@ extern int git_iterator_for_index( const char *start, const char *end); +extern int git_iterator_for_workdir_ext( + git_iterator **out, + git_repository *repo, + const char *repo_workdir, + git_iterator_flag_t flags, + const char *start, + const char *end); + /* workdir iterators will match the ignore_case value from the index of the * repository, unless you override with a non-zero flag value */ -extern int git_iterator_for_workdir( +GIT_INLINE(int) git_iterator_for_workdir( git_iterator **out, git_repository *repo, git_iterator_flag_t flags, const char *start, - const char *end); + const char *end) +{ + return git_iterator_for_workdir_ext(out, repo, NULL, flags, start, end); +} /* for filesystem iterators, you have to explicitly pass in the ignore_case * behavior that you desire |
