]> source.dussan.org Git - jgit.git/commit
DfsInserter: Read minBytesForObjectSizeIndex only from repo config 69/1203269/5
authorIvan Frade <ifrade@google.com>
Tue, 29 Oct 2024 17:57:28 +0000 (10:57 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 29 Oct 2024 20:46:07 +0000 (13:46 -0700)
commit9c6b36e97ba561d4737130c6427d6febc0a7d431
tree4c9bee068ceba7823e9beb4628570572146a7d32
parent52e3e75953582221fb10733a7a5d67c9d673cf75
DfsInserter: Read minBytesForObjectSizeIndex only from repo config

In general, JGit reads the configuration it needs from the repository
configuration. minBytesForObjectSizeIndex is a special case with a
setter for subclasses but that is unnecessary.

Remove the setter and read the conf from the repo. Make the property
final and read it directly from the conf (it is clearer than parsing a
whole PackConfig to read a single value).

Change-Id: I8d77247452ff65e6c431fdcfebb90ed2ce40aed1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java