static int revwalk_next_unsorted(git_commit_list_node **object_out, git_revwalk *walk) { int error; git_commit_list_node *next; while ((next = git_commit_list_pop(&walk->iterator_rand)) != NULL) if (!next->uninteresting) { if ((error = process_commit_parents(walk, next)) < 0) return error; *object_out = next; return 0; } giterr_clear(); return GIT_ITEROVER; }
static int revwalk_next_unsorted(commit_object **object_out, git_revwalk *walk) { int error; commit_object *next; while ((next = commit_list_pop(&walk->iterator_rand)) != NULL) { if ((error = process_commit_parents(walk, next)) < GIT_SUCCESS) return error; if (!next->uninteresting) { *object_out = next; return GIT_SUCCESS; } } return GIT_EREVWALKOVER; }