Example usage for org.eclipse.jgit.dircache DirCache DirCache

List of usage examples for org.eclipse.jgit.dircache DirCache DirCache

Introduction

In this page you can find the example usage for org.eclipse.jgit.dircache DirCache DirCache.

Prototype

public DirCache(File indexLocation, FS fs) 

Source Link

Document

Create a new in-core index representation.

Usage

From source file:com.mangosolutions.rcloud.rawgist.repository.git.CreateOrUpdateGistOperation.java

private DirCache getIndex(Grgit git) {
    File indexFile = new File(this.getLayout().getWorkingFolder(), ".index");
    DirCache index = new DirCache(indexFile, FS.detect());
    return index;
}