use of org.eclipse.jgit.internal.storage.file.PackInserter in project gerrit by GerritCodeReview.
the class CommitRewriter method newPackInserter.
private static ObjectInserter newPackInserter(Repository repo) {
if (!(repo instanceof FileRepository)) {
return repo.newObjectInserter();
}
PackInserter ins = ((FileRepository) repo).getObjectDatabase().newPackInserter();
ins.checkExisting(false);
return ins;
}
Aggregations