summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-06-18 10:25:07 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-06-18 10:25:07 +0100
commitff98fec0a245bc051996bdadbe4e2a0e9a372ebf (patch)
treea48a6aeba48d39e0ddd7cb7d0cf2a81c1dc00b20
parentef6824107e983f0c4f0fc08b71d85e174864a9ce (diff)
downloadlibgit2-cmn/revwalk-iteration.tar.gz
revwalk: formatting updatescmn/revwalk-iteration
-rw-r--r--src/revwalk.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 22b043bcd..53a08a867 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -458,23 +458,23 @@ static int get_revision(git_commit_list_node **out, git_revwalk *walk, git_commi
int error;
git_commit_list_node *commit;
- commit = git_commit_list_pop(list);
- if (!commit) {
- giterr_clear();
- return GIT_ITEROVER;
- }
-
- /*
- * If we did not run limit_list and we must add parents to the
- * list ourselves.
- */
- if (!walk->limited) {
- if ((error = add_parents_to_list(walk, commit, list)) < 0)
- return error;
- }
-
- *out = commit;
- return 0;
+ commit = git_commit_list_pop(list);
+ if (!commit) {
+ giterr_clear();
+ return GIT_ITEROVER;
+ }
+
+ /*
+ * If we did not run limit_list and we must add parents to the
+ * list ourselves.
+ */
+ if (!walk->limited) {
+ if ((error = add_parents_to_list(walk, commit, list)) < 0)
+ return error;
+ }
+
+ *out = commit;
+ return 0;
}
static int sort_in_topological_order(git_commit_list **out, git_revwalk *walk, git_commit_list *list)