Skip to content

Commit

Permalink
Merge pull request #6594 from mbien/fix-git-history-regression
Browse files Browse the repository at this point in the history
Fix Git show history regression.
  • Loading branch information
neilcsmith-net committed Oct 23, 2023
2 parents 9eb9def + c9c2ebf commit 85b6356
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ private void markBranchFlags (Map<String, GitBranch> allBranches, RevWalk walk,
}
} else {
usedFlags.add(flagId);
if (i < 25) {
i = i + 1;
if (i <= 23) { // leave one spare flag for the run method, see RevWalk.newFlag()
i++;
RevFlag flag = walk.newFlag(flagId);
List<GitBranch> branches = new ArrayList<>(allBranches.size());
branches.add(e.getValue());
Expand Down Expand Up @@ -253,7 +253,7 @@ protected String getCommandDescription () {
}

public GitRevisionInfo[] getRevisions () {
return revisions.toArray(new GitRevisionInfo[revisions.size()]);
return revisions.toArray(new GitRevisionInfo[0]);
}

private void addRevision (GitRevisionInfo info) {
Expand Down

0 comments on commit 85b6356

Please sign in to comment.