diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-05-15 23:48:05 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-05-15 23:48:05 +0300 |
commit | 5ca2f58057dfd5e0cf03a176782e4daa925a7f0b (patch) | |
tree | 415d20a2bdcd7ae622e2e05192b1a94026443ea6 /src/revwalk.c | |
parent | f87d9beb8d9e3ed2b6baedd9ca15464f7da93f25 (diff) | |
download | libgit2-5ca2f58057dfd5e0cf03a176782e4daa925a7f0b.tar.gz |
Do not set error message on `GIT_EREVWALKOVER`
This is not really an error, just a special return code to mark the end
of an iteration.
Diffstat (limited to 'src/revwalk.c')
-rw-r--r-- | src/revwalk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/revwalk.c b/src/revwalk.c index a32a16e2a..8163851a3 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -349,7 +349,7 @@ static int revwalk_next_timesort(commit_object **object_out, git_revwalk *walk) } } - return git__throw(GIT_EREVWALKOVER, "No more commits left to iterate"); + return GIT_EREVWALKOVER; } static int revwalk_next_unsorted(commit_object **object_out, git_revwalk *walk) @@ -367,7 +367,7 @@ static int revwalk_next_unsorted(commit_object **object_out, git_revwalk *walk) } } - return git__throw(GIT_EREVWALKOVER, "No more commits left to iterate"); + return GIT_EREVWALKOVER; } static int revwalk_next_toposort(commit_object **object_out, git_revwalk *walk) @@ -378,7 +378,7 @@ static int revwalk_next_toposort(commit_object **object_out, git_revwalk *walk) for (;;) { next = commit_list_pop(&walk->iterator_topo); if (next == NULL) - return git__throw(GIT_EREVWALKOVER, "No more commits left to iterate"); + return GIT_EREVWALKOVER; if (next->in_degree > 0) { next->topo_delay = 1; |