Example usage for Java org.eclipse.jgit.lib CommitBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
CommitBuilder() Initialize an empty commit. |
void | addParentId(AnyObjectId additionalParent) Add a parent onto the end of the parent list. |
byte[] | build() Format this builder's state as a commit object. |
PersonIdent | getAuthor() Get the author of this commit (who wrote it). |
PersonIdent | getCommitter() Get the committer and commit time for this object. |
String | getMessage() Get the complete commit message. |
ObjectId[] | getParentIds() Get the ancestors of this commit. |
ObjectId | getTreeId() Get id of the root tree listing this commit's snapshot. |
void | setAuthor(PersonIdent newAuthor) Set the author (name, email address, and date) of who wrote the commit. |
void | setCommitter(PersonIdent newCommitter) Set the committer and commit time for this object. |
void | setEncoding(String encodingName) Set the encoding for the commit information. |
void | setEncoding(Charset enc) Set the encoding for the commit information. |
void | setMessage(String newMessage) Set the commit message. |
void | setParentId(AnyObjectId newParent) Set the parent of this commit. |
void | setParentIds(ObjectId... newParents) Set the parents of this commit. |
void | setParentIds(List extends AnyObjectId> newParents) Set the parents of this commit. |
void | setParentIds(AnyObjectId parent1, AnyObjectId parent2) Set the parents of this commit. |
void | setTreeId(AnyObjectId id) Set the tree id for this commit object. |