]> source.dussan.org Git - jgit.git/commit
CommitGraphWriter: Make the list of chunks immutable 26/204126/1
authorIvan Frade <ifrade@google.com>
Tue, 5 Sep 2023 18:25:54 +0000 (11:25 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 5 Sep 2023 18:25:54 +0000 (11:25 -0700)
commit4f5afe9d7c2eb5e11140d2cff328782478588c71
treeccccf5dfcb4df14765ca8d966efbafebeaaf9bd1
parentf90f0717a0abe08a58dd92c9b05d3f6c7144d3d9
CommitGraphWriter: Make the list of chunks immutable

The chunk list is calculated before start writing and it is
immutable afterwards.

Make this explicit using an unmodifiable list for the chunks.

Change-Id: I4a5cfb1f3d06a9393d8d93a3fac3c128cf3faec0
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java