summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ganz <neither@nut.email>2018-07-29 11:46:05 +0200
committerJulian Ganz <neither@nut.email>2018-07-29 11:49:20 +0200
commita4ffbae461999989bed33dcefeab7b80f775e450 (patch)
treed9c9aff7b69fdc3f5180f683b1b48a085304c924
parentb00a09b0665281a327d3e3eab39d6c4723ad74ec (diff)
downloadlibgit2-a4ffbae461999989bed33dcefeab7b80f775e450.tar.gz
revwalk: remove tautologic condition for hiding a commit
The contition cannot be reached with `commit->uninteresting` being true: either a `break` or a `continue` statement will be hit in this case.
-rw-r--r--src/revwalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 072ae4674..be647af3a 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -426,8 +426,8 @@ static int limit_list(git_commit_list **out, git_revwalk *walk, git_commit_list
break;
}
- if (!commit->uninteresting && walk->hide_cb && walk->hide_cb(&commit->oid, walk->hide_cb_payload))
- continue;
+ if (walk->hide_cb && walk->hide_cb(&commit->oid, walk->hide_cb_payload))
+ continue;
time = commit->time;
p = &git_commit_list_insert(commit, p)->next;