summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-30 14:24:16 -0700
committerRussell Belfer <rb@github.com>2012-09-05 15:17:24 -0700
commitf335ecd6e126aa9dea28786522c0e6ce71596e91 (patch)
tree3393df3457e423ddc1aaad4d89fb29184246f3a8 /src/fetch.c
parent4d3834038bd0aaef63d62c54900f6ddafec09515 (diff)
downloadlibgit2-f335ecd6e126aa9dea28786522c0e6ce71596e91.tar.gz
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/fetch.c')
-rw-r--r--src/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 278ba3c5..98e1f0b1 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -221,7 +221,7 @@ int git_fetch_negotiate(git_remote *remote)
}
}
- if (error < 0 && error != GIT_REVWALKOVER)
+ if (error < 0 && error != GIT_ITEROVER)
goto on_error;
/* Tell the other end that we're done negotiating */