Skip to content

Commit 476d737

Browse files
committed
javadoc: Mention midx order in the javadoc
Link: https://review.gerrithub.io/id/I84b5f0163ca7725de248afcc26f8f9246a6a6964
1 parent a16b144 commit 476d737

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFileMidx.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ protected DfsPackFileMidx(DfsBlockCache cache, DfsPackDescription desc) {
9090
public abstract DfsPackFileMidx getMultipackIndexBase();
9191

9292
/**
93-
* Packs indexed by this multipack index (base NOT included)
93+
* Packs indexed by this multipack index (base NOT included) in midx order.
9494
*
95-
* @return packs indexed by this multipack index
95+
* @return packs indexed by this multipack index in the order used inside
96+
* the midx.
9697
*/
9798
public abstract List<DfsPackFile> getCoveredPacks();
9899

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/midx/PackIndexMerger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public class PackIndexMerger {
5353
/**
5454
* Builder collecting the inputs for the merger.
5555
* <p>
56-
* Order matters. Packs will appear in the midx in the order they are added.
56+
* Order matters. In case of duplicates, the merger chooses the object in
57+
* the first pack it appears.
5758
*/
5859
public static class Builder {
5960

0 commit comments

Comments
 (0)