Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-31 01:24:16 +0400
committerRussell Belfer <rb@github.com>2012-09-06 02:17:24 +0400
commitf335ecd6e126aa9dea28786522c0e6ce71596e91 (patch)
tree3393df3457e423ddc1aaad4d89fb29184246f3a8 /src/submodule.c
parent4d3834038bd0aaef63d62c54900f6ddafec09515 (diff)
Diff iterators
This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/submodule.c b/src/submodule.c
index a9de9ee6e..66f1f84b4 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -163,6 +163,7 @@ int git_submodule_foreach(
}
if (callback(sm, sm->name, payload)) {
+ giterr_clear();
error = GIT_EUSER;
break;
}