public class GHTreeBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
GHTreeBuilder |
baseTree(String baseTree) |
GHTree |
create()
Creates a tree based on the parameters specified thus far.
|
GHTreeBuilder |
entry(String path,
String mode,
String type,
String sha,
String content)
Adds a new entry to the tree.
|
GHTreeBuilder |
shaEntry(String path,
String sha,
boolean executable)
Specialized version of
entry(String, String, String, String, String) for adding an existing blob referred by its SHA. |
GHTreeBuilder |
textEntry(String path,
String content,
boolean executable)
Specialized version of
entry(String, String, String, String, String) for adding a text file with the specified content. |
public GHTreeBuilder baseTree(String baseTree)
baseTree - the SHA of tree you want to update with new datapublic GHTreeBuilder entry(String path, String mode, String type, String sha, String content)
sha and content must be non-null.public GHTreeBuilder shaEntry(String path, String sha, boolean executable)
entry(String, String, String, String, String) for adding an existing blob referred by its SHA.public GHTreeBuilder textEntry(String path, String content, boolean executable)
entry(String, String, String, String, String) for adding a text file with the specified content.public GHTree create() throws IOException
IOExceptionCopyright © 2018. All rights reserved.