Examples of PackIndexWriter


Examples of org.eclipse.jgit.storage.file.PackIndexWriter

    if (!cachedPacks.isEmpty())
      throw new IOException(JGitText.get().cachedPacksPreventsIndexCreation);

    long writeStart = System.currentTimeMillis();
    final List<ObjectToPack> list = sortByName();
    final PackIndexWriter iw;
    int indexVersion = config.getIndexVersion();
    if (indexVersion <= 0)
      iw = PackIndexWriter.createOldestPossible(indexStream, list);
    else
      iw = PackIndexWriter.createVersion(indexStream, indexVersion);
    iw.write(list, packcsum);
    stats.timeWriting += System.currentTimeMillis() - writeStart;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.