Example usage for Java org.eclipse.jgit.dircache DirCacheEntry fields, constructors, methods, implement or subclass
The text is from its open source code.
int | STAGE_0 The standard (fully merged) stage for an entry. |
int | STAGE_1 The base tree revision for an entry. |
int | STAGE_2 The first tree revision (usually called "ours"). |
int | STAGE_3 The second tree revision (usually called "theirs"). |
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. |
void | copyMetaData(DirCacheEntry src) Copy the ObjectId and other meta fields from an existing entry. |
FileMode | getFileMode() Obtain the org.eclipse.jgit.lib.FileMode for this entry. |
long | getLastModified() Get the cached last modification date of this file, in milliseconds. |
int | getLength() Get the cached size (mod 4 GB) (in bytes) of this file. |
ObjectId | getObjectId() Obtain the ObjectId for the entry. |
String | getPathString() Get the entry's complete path. |
int | getRawMode() Obtain the raw org.eclipse.jgit.lib.FileMode bits for this entry. |
int | getStage() Get the stage of this entry. |
boolean | isAssumeValid() Is this entry always thought to be unmodified? |
boolean | isMerged() Returns whether this entry is in the fully-merged stage (0). |
void | setAssumeValid(boolean assume) Set the assume valid flag for this entry, |
void | setFileMode(FileMode mode) Set the file mode for this entry. |
void | setFileMode(int mode) |
void | setLastModified(long when) Set the cached last modification date of this file, using milliseconds. |
void | setLastModified(Instant when) Set the cached last modification date of this file. |
void | setLength(int sz) Set the cached size (in bytes) of this file. |
void | setLength(long sz) Set the cached size (in bytes) of this file. |
void | setObjectId(AnyObjectId id) Set the ObjectId for the entry. |
void | setObjectIdFromRaw(byte[] bs, int p) Set the ObjectId for the entry from the raw binary representation. |