summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 01:48:50 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-18 01:48:50 +0200
commit904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch)
tree3be54c31248759ba27a08cef52558385116d9b19 /src/iterator.c
parente172cf082e62aa421703080d0bccb7b8762c8bd4 (diff)
downloadlibgit2-breaking-changes.tar.gz
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iterator.c b/src/iterator.c
index cb9838dbc..819b0e22a 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -468,7 +468,7 @@ static int workdir_iterator__expand_dir(workdir_iterator *wi)
error = git_path_dirload_with_stat(wi->path.ptr, wi->root_len, &wf->entries);
if (error < 0 || wf->entries.length == 0) {
workdir_iterator__free_frame(wf);
- return GIT_NOTFOUND;
+ return GIT_ENOTFOUND;
}
git_vector_sort(&wf->entries);
@@ -635,7 +635,7 @@ static int workdir_iterator__update_entry(workdir_iterator *wi)
if (!is_submodule) {
int res = git_submodule_lookup(NULL, wi->repo, wi->entry.path);
is_submodule = (res == 0);
- if (res == GIT_NOTFOUND)
+ if (res == GIT_ENOTFOUND)
giterr_clear();
}
@@ -683,7 +683,7 @@ int git_iterator_for_workdir_range(
wi->root_len = wi->path.size;
if ((error = workdir_iterator__expand_dir(wi)) < 0) {
- if (error == GIT_NOTFOUND)
+ if (error == GIT_ENOTFOUND)
error = 0;
else {
git_iterator_free((git_iterator *)wi);