public String toString() {StringBuilder r = new StringBuilder();r.append("Commit");r.append("={\n");r.append("tree ");r.append(treeId != null ? treeId.name() : "NOT_SET");r.append("\n");for (ObjectId p : parentIds) {r.append("parent ");r.append(p.name());r.append("\n");}r.append("author ");r.append(author != null ? author.toString() : "NOT_SET");r.append("\n");r.append("committer ");r.append(committer != null ? committer.toString() : "NOT_SET");r.append("\n");r.append("gpgSignature ");r.append(gpgSignature != null ? gpgSignature.toString() : "NOT_SET");r.append("\n");if (encoding != null && !References.isSameObject(encoding, UTF_8)) {r.append("encoding ");r.append(encoding.name());r.append("\n");}r.append("\n");r.append(message != null ? message : "");r.append("}");return r.toString();}

public String toString ( ) { StringBuilder r = new StringBuilder ( ) ; r . append ( "Commit" ) ; r . append ( "={\n" ) ; r . append ( "tree " ) ; r . append ( treeId != null ? treeId . name ( ) : "NOT_SET" ) ; r . append ( "\n" ) ; for ( ObjectId p : parentIds ) { r . append ( "parent " ) ; r . append ( p . name ( ) ) ; r . append ( "\n" ) ; } r . append ( "author " ) ; r . append ( author != null ? author . toString ( ) : "NOT_SET" ) ; r . append ( "\n" ) ; r . append ( "committer " ) ; r . append ( committer != null ? committer . toString ( ) : "NOT_SET" ) ; r . append ( "\n" ) ; r . append ( "gpgSignature " ) ; r . append ( gpgSignature != null ? gpgSignature . toString ( ) : "NOT_SET" ) ; r . append ( "\n" ) ; if ( encoding != null && ! References . isSameObject ( encoding , UTF_8 ) ) { r . append ( "encoding " ) ; r . append ( encoding . name ( ) ) ; r . append ( "\n" ) ; } r . append ( "\n" ) ; r . append ( message != null ? message : "" ) ; r . append ( "}" ) ; return r . toString ( ) ; }
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("Commit");r.Append("={\n");r.Append("tree ");r.Append(treeId != null ? treeId.Name : "NOT_SET");r.Append("\n");foreach (ObjectId p in parentIds){r.Append("parent ");r.Append(p.Name);r.Append("\n");}r.Append("author ");r.Append(author != null ? author.ToString() : "NOT_SET");r.Append("\n");r.Append("committer ");r.Append(committer != null ? committer.ToString() : "NOT_SET");r.Append("\n");if (encoding != null && encoding != Constants.CHARSET){r.Append("encoding ");r.Append(encoding.Name());r.Append("\n");}r.Append("\n");r.Append(message != null ? message : string.Empty);r.Append("}");return r.ToString();}
