Java org.eclipse.jgit.lib CommitBuilder fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.lib CommitBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.lib CommitBuilder.

The text is from its open source code.

Constructor

CommitBuilder()
Initialize an empty commit.

Method

voidaddParentId(AnyObjectId additionalParent)
Add a parent onto the end of the parent list.
byte[]build()
Format this builder's state as a commit object.
PersonIdentgetAuthor()
Get the author of this commit (who wrote it).
PersonIdentgetCommitter()
Get the committer and commit time for this object.
StringgetMessage()
Get the complete commit message.
ObjectId[]getParentIds()
Get the ancestors of this commit.
ObjectIdgetTreeId()
Get id of the root tree listing this commit's snapshot.
voidsetAuthor(PersonIdent newAuthor)
Set the author (name, email address, and date) of who wrote the commit.
voidsetCommitter(PersonIdent newCommitter)
Set the committer and commit time for this object.
voidsetEncoding(String encodingName)
Set the encoding for the commit information.
voidsetEncoding(Charset enc)
Set the encoding for the commit information.
voidsetMessage(String newMessage)
Set the commit message.
voidsetParentId(AnyObjectId newParent)
Set the parent of this commit.
voidsetParentIds(ObjectId... newParents)
Set the parents of this commit.
voidsetParentIds(List newParents)
Set the parents of this commit.
voidsetParentIds(AnyObjectId parent1, AnyObjectId parent2)
Set the parents of this commit.
voidsetTreeId(AnyObjectId id)
Set the tree id for this commit object.