If pathPrefix is "a/b" and the tree contains file "c" then the resulting DirCacheEntry will have the path "a/b/c".
All entries are inserted at stage 0, therefore assuming that the application will not insert any other paths with the same pathPrefix.
@param pathPrefix 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.
@param stage stage of the entries when adding them.
@param reader reader the tree(s) will be read from during recursive traversal. This must be the same repository that the resulting DirCache would be written out to (or used in) otherwise the caller is simply asking for deferred MissingObjectExceptions. Caller is responsible for releasing this reader when done.
@param tree the tree to recursively add. This tree's contents will appear under pathPrefix
. The ObjectId must be that of a tree; the caller is responsible for dereferencing a tag or commit (if necessary).
@throws IOException a tree cannot be read to iterate through its entries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|