public class TreeCreator
extends java.lang.Object
| Constructor and Description |
|---|
TreeCreator(org.eclipse.jgit.revwalk.RevCommit baseCommit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModifications(java.util.List<TreeModification> treeModifications)
Apply modifications 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 addTreeModifications(java.util.List<TreeModification> treeModifications)
treeModifications - modifications which should be applied to the base treepublic org.eclipse.jgit.lib.ObjectId createNewTreeAndGetId(org.eclipse.jgit.lib.Repository repository)
throws java.io.IOException
repository - the affected Git repositoryObjectId of the created treejava.io.IOException - if problems arise when accessing the repository