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

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

Introduction

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

Prototype

public void read() throws IOException, CorruptObjectException 

Source Link

Document

Read the index from disk, if it has changed on disk.

Usage

From source file:com.bacoder.scmtools.git.internal.InMemoryRepository.java

License:Apache License

@Override
public DirCache readDirCache() throws NoWorkTreeException, CorruptObjectException, IOException {
    DirCache dc = new InMemoryDirCache(getIndexFile(), getFS());
    dc.read();
    dc.setRepository(this);
    return dc;//from   ww  w  .j  av  a 2s  . co m
}