diff options
| author | Edward Thomson <ethomson@github.com> | 2016-02-25 15:11:14 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-03-23 17:08:37 -0400 |
| commit | 684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (patch) | |
| tree | d36c6b41dcb8bdf086d097b41ff585d8202ac136 /src/pathspec.c | |
| parent | ac05086c40266bdd4541c06d3be532ee118ed204 (diff) | |
| download | libgit2-684b35c41b9166645e2edb9bc708aa7ddf9c1f24.tar.gz | |
iterator: disambiguate reset and reset_range
Disambiguate the reset and reset_range functions. Now reset_range
with a NULL path will clear the start or end; reset will leave the
existing start and end unchanged.
Diffstat (limited to 'src/pathspec.c')
| -rw-r--r-- | src/pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 8a93cdd50..361b398b8 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -418,7 +418,7 @@ static int pathspec_match_from_iterator( GITERR_CHECK_ALLOC(m); } - if ((error = git_iterator_reset(iter, ps->prefix, ps->prefix)) < 0) + if ((error = git_iterator_reset_range(iter, ps->prefix, ps->prefix)) < 0) goto done; if (git_iterator_type(iter) == GIT_ITERATOR_TYPE_WORKDIR && |
