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

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

Introduction

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

The text is from its open source code.

Field

intSTAGE_0
The standard (fully merged) stage for an entry.
intSTAGE_1
The base tree revision for an entry.
intSTAGE_2
The first tree revision (usually called "ours").
intSTAGE_3
The second tree revision (usually called "theirs").

Constructor

DirCacheEntry(String newPath)
Create an empty entry at stage 0.
DirCacheEntry(byte[] newPath)
Create an empty entry at stage 0.
DirCacheEntry(DirCacheEntry src)
Duplicate DirCacheEntry with same path and copied info.
DirCacheEntry(String newPath, int stage)
Create an empty entry at the specified stage.
DirCacheEntry(byte[] path, int stage)
Create an empty entry at the specified stage.

Method

voidcopyMetaData(DirCacheEntry src)
Copy the ObjectId and other meta fields from an existing entry.
FileModegetFileMode()
Obtain the org.eclipse.jgit.lib.FileMode for this entry.
longgetLastModified()
Get the cached last modification date of this file, in milliseconds.
intgetLength()
Get the cached size (mod 4 GB) (in bytes) of this file.
ObjectIdgetObjectId()
Obtain the ObjectId for the entry.
StringgetPathString()
Get the entry's complete path.
intgetRawMode()
Obtain the raw org.eclipse.jgit.lib.FileMode bits for this entry.
intgetStage()
Get the stage of this entry.
booleanisAssumeValid()
Is this entry always thought to be unmodified?
booleanisMerged()
Returns whether this entry is in the fully-merged stage (0).
voidsetAssumeValid(boolean assume)
Set the assume valid flag for this entry,
voidsetFileMode(FileMode mode)
Set the file mode for this entry.
voidsetFileMode(int mode)
voidsetLastModified(long when)
Set the cached last modification date of this file, using milliseconds.
voidsetLastModified(Instant when)
Set the cached last modification date of this file.
voidsetLength(int sz)
Set the cached size (in bytes) of this file.
voidsetLength(long sz)
Set the cached size (in bytes) of this file.
voidsetObjectId(AnyObjectId id)
Set the ObjectId for the entry.
voidsetObjectIdFromRaw(byte[] bs, int p)
Set the ObjectId for the entry from the raw binary representation.