Skip to content

Commit ff98fec

Browse files
committed
revwalk: formatting updates
1 parent ef68241 commit ff98fec

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/revwalk.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -458,23 +458,23 @@ static int get_revision(git_commit_list_node **out, git_revwalk *walk, git_commi
458458
int error;
459459
git_commit_list_node *commit;
460460

461-
commit = git_commit_list_pop(list);
462-
if (!commit) {
463-
giterr_clear();
464-
return GIT_ITEROVER;
465-
}
466-
467-
/*
468-
* If we did not run limit_list and we must add parents to the
469-
* list ourselves.
470-
*/
471-
if (!walk->limited) {
472-
if ((error = add_parents_to_list(walk, commit, list)) < 0)
473-
return error;
474-
}
475-
476-
*out = commit;
477-
return 0;
461+
commit = git_commit_list_pop(list);
462+
if (!commit) {
463+
giterr_clear();
464+
return GIT_ITEROVER;
465+
}
466+
467+
/*
468+
* If we did not run limit_list and we must add parents to the
469+
* list ourselves.
470+
*/
471+
if (!walk->limited) {
472+
if ((error = add_parents_to_list(walk, commit, list)) < 0)
473+
return error;
474+
}
475+
476+
*out = commit;
477+
return 0;
478478
}
479479

480480
static int sort_in_topological_order(git_commit_list **out, git_revwalk *walk, git_commit_list *list)

0 commit comments

Comments
 (0)