summaryrefslogtreecommitdiff
path: root/src/pathspec.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-25 15:11:14 -0500
committerEdward Thomson <ethomson@github.com>2016-03-23 17:08:37 -0400
commit684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (patch)
treed36c6b41dcb8bdf086d097b41ff585d8202ac136 /src/pathspec.c
parentac05086c40266bdd4541c06d3be532ee118ed204 (diff)
downloadlibgit2-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.c2
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 &&