text: public String format(List<RevCommit> squashedCommits, Ref target) {StringBuilder sb = new StringBuilder();sb.append("Squashed commit of the following:\n"); for (RevCommit c : squashedCommits) {sb.append("\ncommit "); sb.append(c.getName());sb.append("\n"); sb.append(toString(c.getAuthorIdent()));sb.append("\n\t"); sb.append(c.getShortMessage());sb.append("\n"); }return sb.toString();}