Method | Description | |
---|---|---|
Compare ( |
||
Compare ( byte aPath, int aLen, byte bPath, int bLen ) : int | ||
DirCache ( |
Create a new in-core index representation.
|
|
Lock ( |
Create a new in-core index representation, lock it, and read from disk.
|
|
Lock ( Repository db ) : |
Create a new in-core index representation, lock it, and read from disk.
|
|
Lock ( ) : bool |
Try to establish an update lock on the cache file.
|
|
builder ( ) : |
Create a new builder to update this cache.
|
|
clear ( ) : void |
Empty this index, removing all entries.
|
|
commit ( ) : bool |
Commit this change and release the lock.
|
|
editor ( ) : |
Create a new editor to recreate this cache.
|
|
findEntry ( byte p, int pLen ) : int | ||
findEntry ( string path ) : int |
Locate the position a path's entry is at in the index.
|
|
getCacheTree ( bool build ) : |
Obtain (or build) the current cache tree structure.
|
|
getEntriesWithin ( string path ) : GitSharp.Core.DirectoryCache.DirCacheEntry[] |
Recursively get all entries within a subtree.
|
|
getEntry ( int i ) : |
Get a specific entry.
|
|
getEntry ( string path ) : |
Get a specific entry.
|
|
getEntryCount ( ) : int |
Total number of file entries stored in the index.
|
|
newInCore ( ) : |
Create a new empty index which is never stored on disk.
|
|
nextEntry ( byte p, int pLen, int nextIdx ) : int | ||
nextEntry ( int position ) : int |
Determine the next index position past all entries with the same name.
|
|
read ( |
Create a new in-core index representation and read an index from disk.
|
|
read ( Repository db ) : |
Create a new in-core index representation and read an index from disk.
|
|
read ( ) : void |
Read the index from disk, if it has changed on disk.
|
|
replace ( |
||
toArray ( int i, |
||
unlock ( ) : void |
Unlock this file and abort this change.
|
|
write ( ) : void |
Write the entry records from memory to disk.
|
|
writeTree ( ObjectWriter ow ) : ObjectId |
Write all index trees to the object store, returning the root tree.
|
Method | Description | |
---|---|---|
Compare ( byte aPath, int aLen, |
||
IsDIRC ( byte header ) : bool | ||
ReadFrom ( Stream inStream ) : void | ||
RequireLocked ( LockFile tmp ) : void | ||
WriteTo ( Stream os ) : void |
public static Compare ( |
||
a | ||
b | ||
return | int |
public static Compare ( byte aPath, int aLen, byte bPath, int bLen ) : int | ||
aPath | byte | |
aLen | int | |
bPath | byte | |
bLen | int | |
return | int |
public DirCache ( |
||
indexLocation | location of the index file on disk. | |
return | System |
public static Lock ( |
||
indexLocation | /// location of the index file on disk. /// | |
return |
public static Lock ( Repository db ) : |
||
db | Repository | /// Repository the caller wants to read the default index of. /// |
return |
public findEntry ( string path ) : int | ||
path | string | The path to search for. |
return | int |
public getCacheTree ( bool build ) : |
||
build | bool | /// If true and the cache tree is not present in the index it will /// be generated and returned to the caller. /// |
return |
public getEntriesWithin ( string path ) : GitSharp.Core.DirectoryCache.DirCacheEntry[] | ||
path | string | /// The subtree path to get all entries within. /// |
return | GitSharp.Core.DirectoryCache.DirCacheEntry[] |
public getEntry ( int i ) : |
||
i | int | /// position of the entry to get. /// |
return |
public getEntry ( string path ) : |
||
path | string | The path to search for. |
return |
public nextEntry ( byte p, int pLen, int nextIdx ) : int | ||
p | byte | |
pLen | int | |
nextIdx | int | |
return | int |
public nextEntry ( int position ) : int | ||
position | int | /// entry position of the path that should be skipped. /// |
return | int |
public static read ( |
||
indexLocation | Location of the index file on disk. | |
return |
public static read ( Repository db ) : |
||
db | Repository | /// repository the caller wants to read the default index of. /// |
return |
public replace ( |
||
e | ||
cnt | int | |
return | void |
public toArray ( int i, |
||
i | int | |
dst | ||
off | int | |
cnt | int | |
return | void |
public writeTree ( ObjectWriter ow ) : ObjectId | ||
ow | ObjectWriter | /// The writer to use when serializing to the store. /// |
return | ObjectId |