Java org.eclipse.jgit.dircache DirCache fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.dircache DirCache fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.dircache DirCache.

The text is from its open source code.

Subclass

org.eclipse.jgit.dircache.DirCache has subclasses.
Click this link to see all its subclasses.

Constructor

DirCache(File indexLocation, FS fs)
Create a new in-core index representation.

Method

DirCacheBuilderbuilder()
Create a new builder to update this cache.
voidclear()
Empty this index, removing all entries.
booleancommit()
Commit this change and release the lock.
DirCacheEditoreditor()
Create a new editor to recreate this cache.
intfindEntry(String path)
Locate the position a path's entry is at in the index.
DirCacheEntry[]getEntriesWithin(String path)
Recursively get all entries within a subtree.
DirCacheEntrygetEntry(int i)
Get a specific entry.
DirCacheEntrygetEntry(String path)
Get a specific entry.
intgetEntryCount()
Total number of file entries stored in the index.
booleanlock()
Try to establish an update lock on the cache file.
DirCachenewInCore()
Create a new empty index which is never stored on disk.
intnextEntry(int position)
Determine the next index position past all entries with the same name.
voidread()
Read the index from disk, if it has changed on disk.
DirCacheread(Repository repository)
Create a new in-core index representation and read an index from disk.
DirCacheread(ObjectReader reader, AnyObjectId treeId)
Create a new in memory index read from the contents of a tree.
DirCacheread(File indexLocation, FS fs)
Create a new in-core index representation and read an index from disk.
voidunlock()
Unlock this file and abort this change.
voidwrite()
Write the entry records from memory to disk.
ObjectIdwriteTree(ObjectInserter ow)
Write all index trees to the object store, returning the root tree.