Commit ff98fec0 by Edward Thomson

revwalk: formatting updates

parent ef682410
...@@ -458,23 +458,23 @@ static int get_revision(git_commit_list_node **out, git_revwalk *walk, git_commi ...@@ -458,23 +458,23 @@ static int get_revision(git_commit_list_node **out, git_revwalk *walk, git_commi
int error; int error;
git_commit_list_node *commit; git_commit_list_node *commit;
commit = git_commit_list_pop(list); commit = git_commit_list_pop(list);
if (!commit) { if (!commit) {
giterr_clear(); giterr_clear();
return GIT_ITEROVER; return GIT_ITEROVER;
} }
/* /*
* If we did not run limit_list and we must add parents to the * If we did not run limit_list and we must add parents to the
* list ourselves. * list ourselves.
*/ */
if (!walk->limited) { if (!walk->limited) {
if ((error = add_parents_to_list(walk, commit, list)) < 0) if ((error = add_parents_to_list(walk, commit, list)) < 0)
return error; return error;
} }
*out = commit; *out = commit;
return 0; return 0;
} }
static int sort_in_topological_order(git_commit_list **out, git_revwalk *walk, git_commit_list *list) static int sort_in_topological_order(git_commit_list **out, git_revwalk *walk, git_commit_list *list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment