]> source.dussan.org Git - jgit.git/commit
MergedReftable: Include the last reftable in determining minUpdateIndex 29/165329/2
authorMinh Thai <mthai@google.com>
Mon, 22 Jun 2020 23:44:32 +0000 (16:44 -0700)
committerMinh Thai <mthai@google.com>
Tue, 23 Jun 2020 00:14:35 +0000 (17:14 -0700)
commit9719ca411eed75d30f3199d1d57663c3cb68e29b
treeffefd0bbeb1486ce5390fd3f7558293202a058ed
parent641069971d6cd7acaa8fbf75dfe3595d7bfe4d6e
MergedReftable: Include the last reftable in determining minUpdateIndex

MergedReftable ignores the last reftable in the stack while calculating the
minUpdateIndex.

Update the loop indices to include all reftables in the minUpdateIndex
calculation, while skipping position 0 as it is read outside the loop.

Change-Id: I12d3e714581e93d178be79c02408a67ab2bd838e
Signed-off-by: Minh Thai <mthai@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/MergedReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/MergedReftable.java