@ -84,12 +84,6 @@ import org.eclipse.jgit.util.NB;
/** Indexes Git pack files for local use. */
/** Indexes Git pack files for local use. */
public class IndexPack {
public class IndexPack {
/** Progress message when reading raw data from the pack. */
public static final String PROGRESS_DOWNLOAD = JGitText . get ( ) . receivingObjects ;
/** Progress message when computing names of delta compressed objects. */
public static final String PROGRESS_RESOLVE_DELTA = JGitText . get ( ) . resolvingDeltas ;
/ * *
/ * *
* Size of the internal stream buffer .
* Size of the internal stream buffer .
* < p >
* < p >
@ -404,7 +398,8 @@ public class IndexPack {
baseById = new ObjectIdSubclassMap < DeltaChain > ( ) ;
baseById = new ObjectIdSubclassMap < DeltaChain > ( ) ;
baseByPos = new LongMap < UnresolvedDelta > ( ) ;
baseByPos = new LongMap < UnresolvedDelta > ( ) ;
progress . beginTask ( PROGRESS_DOWNLOAD , ( int ) objectCount ) ;
progress . beginTask ( JGitText . get ( ) . receivingObjects ,
( int ) objectCount ) ;
for ( int done = 0 ; done < objectCount ; done + + ) {
for ( int done = 0 ; done < objectCount ; done + + ) {
indexOneObject ( ) ;
indexOneObject ( ) ;
progress . update ( 1 ) ;
progress . update ( 1 ) ;
@ -473,7 +468,7 @@ public class IndexPack {
private void resolveDeltas ( final ProgressMonitor progress )
private void resolveDeltas ( final ProgressMonitor progress )
throws IOException {
throws IOException {
progress . beginTask ( PROGRESS_RESOLVE_DELTA , deltaCount ) ;
progress . beginTask ( JGitText . get ( ) . resolvingDeltas , deltaCount ) ;
final int last = entryCount ;
final int last = entryCount ;
for ( int i = 0 ; i < last ; i + + ) {
for ( int i = 0 ; i < last ; i + + ) {
final int before = entryCount ;
final int before = entryCount ;