br.com.objectos.git
public final class Commit extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the specified object with this Git object for equality.
|
void |
formatToString(StringBuilder sb,
int depth) |
Identification |
getAuthor()
Returns the author of this commit.
|
Identification |
getCommitter()
Returns the committer of this commit.
|
String |
getMessage()
Returns the message of this commit.
|
ObjectId |
getObjectId()
Returns the hash value that uniquely identifies this Git object.
|
br.com.objectos.collections.list.ImmutableList<ObjectId> |
getParents()
Returns the hash values of the parents of this commit.
|
ObjectId |
getTree()
Returns the hash value of the tree object associated to this commit.
|
int |
hashCode()
Returns the hash code value of this Git object.
|
String |
print()
Returns a string representation of this commit that should be equivalent to
the output of the
git-cat-file utility when invoked with the
-p option. |
String |
toString()
Returns the string representation of this Git object as defined by the
ToStringObject.formatToString(StringBuilder, int) method. |
public final void formatToString(StringBuilder sb, int depth)
public final Identification getAuthor()
public final Identification getCommitter()
public final String getMessage()
public final br.com.objectos.collections.list.ImmutableList<ObjectId> getParents()
public final ObjectId getTree()
public final String print()
git-cat-file utility when invoked with the
-p option.public final boolean equals(Object obj)
Returns true if and only if the specified object is also a Git
object of the same type and if both instances have the same hash value.
public final ObjectId getObjectId()
public final int hashCode()
Copyright © 2020–2022 Objectos Software LTDA. All rights reserved.