]> source.dussan.org Git - jgit.git/commit
PackWriter: Remove constructor with only Reader as param 56/1201356/1
authorIvan Frade <ifrade@google.com>
Mon, 16 Sep 2024 19:44:00 +0000 (12:44 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 16 Sep 2024 19:44:00 +0000 (12:44 -0700)
commitc3c78ddd9243aca1d03575c37672b767daaa503c
treee75b44000369cedc6dec430c42485e36ff4b570b
parent77e7479a36e5e9742043d0c54a02119a1097f623
PackWriter: Remove constructor with only Reader as param

At construction time, PackWriter receives the PackConfig as a
parameter or reads it from the repository. The only exception is when
the constructor receives only a reader (no repo nor conf
provided?!).

Remove PackWriter(Reader) and let callers be explicit what conf to
use. This makes clearer the flow of conf in the PackWriter.

Change-Id: If12e122797ffc8c44fc3c435ca1b000ca016645b
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsPackFileTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java