Git: git log tree: for the case when, due to the filter, we will never see 'first' commit - then stop loading in cycle when wee see the same commit on boundary again

This commit is contained in:
irengrig
2010-06-23 13:16:37 +04:00
parent e0ec838fb5
commit ec1e38352f
@@ -190,7 +190,7 @@ class GitTreeController implements ManageGitTreeView {
if (myCommitList.size() >= maxCnt) break;
}
}
if (myLastCommit == null || myLastCommit.getParentsHashes().isEmpty()) {
if (myLastCommit == null || myLastCommit.getParentsHashes().isEmpty() || myLastCommit.getHash().equals(lastHash)) {
myStartFound = true;
break;
}