public String toString() {StringBuilder r = new StringBuilder();r.append("SymbolicRef[");Ref cur = this;while (cur.isSymbolic()) {r.append(cur.getName());r.append(" -> ");cur = cur.getTarget();}r.append(cur.getName());r.append('=');r.append(ObjectId.toString(cur.getObjectId()));r.append("(");r.append(updateIndex); r.append(")]");return r.toString();}
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("SymbolicRef[");Ref cur = this;while (cur.IsSymbolic()){r.Append(cur.GetName());r.Append(" -> ");cur = cur.GetTarget();}r.Append(cur.GetName());r.Append('=');r.Append(ObjectId.ToString(cur.GetObjectId()));r.Append("]");return r.ToString();}