Example usage for Java org.eclipse.jgit.dircache DirCache fields, constructors, methods, implement or subclass
The text is from its open source code.
DirCache(File indexLocation, FS fs) Create a new in-core index representation. |
DirCacheBuilder | builder() Create a new builder to update this cache. |
void | clear() Empty this index, removing all entries. |
boolean | commit() Commit this change and release the lock. |
DirCacheEditor | editor() Create a new editor to recreate this cache. |
int | findEntry(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. |
DirCacheEntry | getEntry(int i) Get a specific entry. |
DirCacheEntry | getEntry(String path) Get a specific entry. |
int | getEntryCount() Total number of file entries stored in the index. |
boolean | lock() Try to establish an update lock on the cache file. |
DirCache | newInCore() Create a new empty index which is never stored on disk. |
int | nextEntry(int position) Determine the next index position past all entries with the same name. |
void | read() Read the index from disk, if it has changed on disk. |
DirCache | read(Repository repository) Create a new in-core index representation and read an index from disk. |
DirCache | read(ObjectReader reader, AnyObjectId treeId) Create a new in memory index read from the contents of a tree. |
DirCache | read(File indexLocation, FS fs) Create a new in-core index representation and read an index from disk. |
void | unlock() Unlock this file and abort this change. |
void | write() Write the entry records from memory to disk. |
ObjectId | writeTree(ObjectInserter ow) Write all index trees to the object store, returning the root tree. |