Méthode | Description | |
---|---|---|
DirCacheEntry ( byte newPath ) : System |
Create an empty entry at stage 0.
|
|
DirCacheEntry ( byte newPath, int stage ) : System |
Create an empty entry at the specified stage.
|
|
DirCacheEntry ( byte sharedInfo, int infoAt, Stream @in, |
||
DirCacheEntry ( string newPath ) : System |
Create an empty entry at stage 0.
|
|
DirCacheEntry ( string newPath, int stage ) : System |
Create an empty entry at the specified stage.
|
|
copyMetaData ( |
Copy the ObjectId and other meta fields from an existing entry.
|
|
getFileMode ( ) : FileMode |
Obtain the FileMode for this entry.
|
|
getLastModified ( ) : long |
Get the cached last modification date of this file, in milliseconds.
|
|
getLength ( ) : int |
Get the cached size (in bytes) of this file.
|
|
getObjectId ( ) : ObjectId |
Obtain the ObjectId for the entry.
|
|
getPathString ( ) : string |
Get the entry's complete path.
|
|
getRawMode ( ) : int |
Obtain the raw FileMode bits for this entry.
|
|
getStage ( ) : int |
Get the stage of this entry.
|
|
idBuffer ( ) : byte[] | ||
idOffset ( ) : int | ||
isAssumeValid ( ) : bool |
Is this entry always thought to be unmodified?
|
|
mightBeRacilyClean ( int smudge_s, int smudge_ns ) : bool |
Is it possible for this entry to be accidentally assumed clean?
|
|
setAssumeValid ( bool assume ) : void |
Set the assume valid flag for this entry,
|
|
setFileMode ( FileMode mode ) : void |
Set the file mode for this entry.
|
|
setLastModified ( long when ) : void |
Set the cached last modification date of this file, using milliseconds.
|
|
setLength ( int sz ) : void |
Set the cached size (in bytes) of this file.
|
|
setObjectId ( AnyObjectId id ) : void |
Set the ObjectId for the entry.
|
|
setObjectIdFromRaw ( byte bs, int p ) : void |
Set the ObjectId for the entry from the raw binary representation.
|
|
smudgeRacilyClean ( ) : void |
Force this entry to no longer match its working tree file.
|
|
write ( Stream os ) : void |
Méthode | Description | |
---|---|---|
DecodeTimestamp ( int pIdx ) : long | ||
EncodeTimestamp ( int pIdx, long when ) : void |
|
public DirCacheEntry ( byte newPath ) : System | ||
newPath | byte | /// name of the cache entry, in the standard encoding. /// |
Résultat | System |
public DirCacheEntry ( byte newPath, int stage ) : System | ||
newPath | byte | /// Name of the cache entry, in the standard encoding. /// |
stage | int | The stage index of the new entry. |
Résultat | System |
public DirCacheEntry ( byte sharedInfo, int infoAt, Stream @in, |
||
sharedInfo | byte | |
infoAt | int | |
@in | Stream | |
md | ||
Résultat | System |
public DirCacheEntry ( string newPath ) : System | ||
newPath | string | Name of the cache entry. |
Résultat | System |
public DirCacheEntry ( string newPath, int stage ) : System | ||
newPath | string | name of the cache entry. |
stage | int | the stage index of the new entry. |
Résultat | System |
public copyMetaData ( |
||
src | /// The entry to copy ObjectId and meta fields from. /// | |
Résultat | void |
public mightBeRacilyClean ( int smudge_s, int smudge_ns ) : bool | ||
smudge_s | int | /// Seconds component of the index's last modified time. /// |
smudge_ns | int | /// Nanoseconds component of the index's last modified time. /// |
Résultat | bool |
public setAssumeValid ( bool assume ) : void | ||
assume | bool | /// True to ignore apparent modifications; false to look at last /// modified to detect file modifications. /// |
Résultat | void |
public setFileMode ( FileMode mode ) : void | ||
mode | FileMode | The new mode constant. |
Résultat | void |
public setLastModified ( long when ) : void | ||
when | long | /// new cached modification date of the file, in milliseconds. /// |
Résultat | void |
public setLength ( int sz ) : void | ||
sz | int | new cached size of the file, as bytes. |
Résultat | void |
public setObjectId ( AnyObjectId id ) : void | ||
id | AnyObjectId |
/// New object identifier for the entry. May be
/// |
Résultat | void |
public setObjectIdFromRaw ( byte bs, int p ) : void | ||
bs | byte |
/// The raw byte buffer to read from. At least 20 bytes after |
p | int | position to read the first byte of data from. |
Résultat | void |