]> source.dussan.org Git - jgit.git/commit
PackParser: populate full size of the PackedObjectInfos 82/191082/7
authorIvan Frade <ifrade@google.com>
Thu, 16 Dec 2021 21:08:33 +0000 (13:08 -0800)
committerIvan Frade <ifrade@google.com>
Tue, 18 Oct 2022 18:19:21 +0000 (11:19 -0700)
commit96236fdcb5502f3071317b9cf2bf88019d7fb309
tree3add379d1fe313942e07eb733473717a139ea72b
parent60206ea95f1bff6a301ee65e532a27e085812a5d
PackParser: populate full size of the PackedObjectInfos

We need the full size of the objects to populate the object-size index
of a pack. This size is not always the one encoded in the object header
in the pack (e.g. for deltas).

Populate the full size of PackedObjectInfos in the PackParser, which is
invoked when receiving a pack e.g. in a push.

Change-Id: I102c20901aefb5e85047e2e526c0d733f82ff74b
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PackParserTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java