public class TreeCreator extends Object
Constructor and Description |
---|
TreeCreator(org.eclipse.jgit.revwalk.RevCommit baseCommit) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModification(TreeModification treeModification)
Apply a modification to the tree which is taken as a basis.
|
org.eclipse.jgit.lib.ObjectId |
createNewTreeAndGetId(org.eclipse.jgit.lib.Repository repository)
Creates the new tree.
|
public void addTreeModification(TreeModification treeModification)
treeModification
- a modification which should be applied to the base treepublic org.eclipse.jgit.lib.ObjectId createNewTreeAndGetId(org.eclipse.jgit.lib.Repository repository) throws IOException
repository
- the affected Git repositoryObjectId
of the created treeIOException
- if problems arise when accessing the repository