diff options
author | Ivan Frade <ifrade@google.com> | 2024-09-24 15:23:04 -0700 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2024-09-24 15:23:04 -0700 |
commit | c5407a2b5967e19859d9028db2ad72c54a6f047c (patch) | |
tree | 3488ba06b4ae13c42d1d2d5dbdd3a318295a05c8 /org.eclipse.jgit | |
parent | cd21ed3b4ec3c8ad1ccca6bcffd41e211d659ae0 (diff) | |
download | jgit-c5407a2b5967e19859d9028db2ad72c54a6f047c.tar.gz jgit-c5407a2b5967e19859d9028db2ad72c54a6f047c.zip |
DfsInserter: Create PackConfig from repo instead of repo.conf
PackConfig can be constructed from the repo or from a config. While
browing the code, it is easier to follow the provenance of the
configuration when using the repository constructor.
Use the PackConfig(Repository) constructor in the
DfsInserter. Internally it calls PackConfig(repo.getConfig()) so this
should be a noop.
Change-Id: Ifce5bc87404ca8ec9a821d28253d489056faad9a
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java index a07d8416c4..86fbd445be 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java @@ -93,7 +93,7 @@ public class DfsInserter extends ObjectInserter { */ protected DfsInserter(DfsObjDatabase db) { this.db = db; - PackConfig pc = new PackConfig(db.getRepository().getConfig()); + PackConfig pc = new PackConfig(db.getRepository()); this.minBytesForObjectSizeIndex = pc.getMinBytesForObjSizeIndex(); } |