Method | Description | |
---|---|---|
DirCacheBuilder ( |
Construct a new builder.
|
|
add ( |
Append one entry into the resulting entry list.
|
|
addTree ( byte pathPrefix, int stage, Repository db, AnyObjectId tree ) : void |
Recursively add an entire tree into this builder.
|
|
finish ( ) : void | ||
keep ( int pos, int cnt ) : void |
Add a range of existing entries from the destination cache.
|
Method | Description | |
---|---|---|
Bad ( |
||
BeforeAdd ( |
||
Resort ( ) : void | ||
ToEntry ( int stage, TreeWalk tw ) : |
public DirCacheBuilder ( |
||
dc | /// the cache this builder will eventually update. /// | |
ecnt | int | /// Estimated number of entries the builder will have upon /// completion. This sizes the initial entry table. /// |
return | System |
public add ( |
||
newEntry | the new entry to add. | |
return | void |
public addTree ( byte pathPrefix, int stage, Repository db, AnyObjectId tree ) : void | ||
pathPrefix | byte | /// UTF-8 encoded prefix to mount the tree's entries at. If the /// path does not end with '/' one will be automatically inserted /// as necessary. /// |
stage | int | Stage of the entries when adding them. |
db | Repository |
/// Repository the tree(s) will be read from during recursive
/// traversal. This must be the same repository that the resulting
/// |
tree | AnyObjectId |
/// The tree to recursively add. This tree's contents will appear
/// under |
return | void |
public keep ( int pos, int cnt ) : void | ||
pos | int | /// First entry to copy from the destination cache. /// |
cnt | int | Number of entries to copy. |
return | void |