/** * Create a new squash message formatter. */ public SquashMessageFormatter() { dateFormatter = new GitDateFormatter(Format.DEFAULT); } /**
private String toString(PersonIdent author) { final StringBuilder a = new StringBuilder(); a.append("Author: "); //$NON-NLS-1$ a.append(author.getName()); a.append(" <"); //$NON-NLS-1$ a.append(author.getEmailAddress()); a.append(">\n"); //$NON-NLS-1$ a.append("Date: "); //$NON-NLS-1$ a.append(dateFormatter.formatDate(author)); a.append("\n"); //$NON-NLS-1$ return a.toString(); } }
/** * Create a new squash message formatter. */ public SquashMessageFormatter() { dateFormatter = new GitDateFormatter(Format.DEFAULT); } /**
private String toString(PersonIdent author) { final StringBuilder a = new StringBuilder(); a.append("Author: "); //$NON-NLS-1$ a.append(author.getName()); a.append(" <"); //$NON-NLS-1$ a.append(author.getEmailAddress()); a.append(">\n"); //$NON-NLS-1$ a.append("Date: "); //$NON-NLS-1$ a.append(dateFormatter.formatDate(author)); a.append("\n"); //$NON-NLS-1$ return a.toString(); } }
private GitDateFormatter getDateFormatter() { if (dateFormatter == null) dateFormatter = new GitDateFormatter(format); return dateFormatter; }
private String toString(PersonIdent author) { final StringBuilder a = new StringBuilder(); a.append("Author: "); //$NON-NLS-1$ a.append(author.getName()); a.append(" <"); //$NON-NLS-1$ a.append(author.getEmailAddress()); a.append(">\n"); //$NON-NLS-1$ a.append("Date: "); //$NON-NLS-1$ a.append(dateFormatter.formatDate(author)); a.append("\n"); //$NON-NLS-1$ return a.toString(); } }
Log() { dateFormatter = new GitDateFormatter(Format.DEFAULT); }
+ " <" //$NON-NLS-1$ + commit.getAuthorIdent().getEmailAddress() + "> " + gitDateFormatter.formatDate(commit.getAuthorIdent())); //$NON-NLS-1$ committer.setText(commit.getCommitterIdent().getName() + " <" //$NON-NLS-1$ + commit.getCommitterIdent().getEmailAddress() + "> " + gitDateFormatter.formatDate(commit.getCommitterIdent())); //$NON-NLS-1$ rw.dispose();
/** * Create a new squash message formatter. */ public SquashMessageFormatter() { dateFormatter = new GitDateFormatter(Format.DEFAULT); } /**
outw.println(MessageFormat.format(CLIText.get().authorInfo, author.getName(), author.getEmailAddress())); outw.println(MessageFormat.format(CLIText.get().dateInfo, dateFormatter.formatDate(author)));
@Option(name = "--date", usage = "usage_date") void dateFormat(String date) { if (date.toLowerCase().equals(date)) date = date.toUpperCase(); dateFormatter = new GitDateFormatter(Format.valueOf(date)); }
return author.getName(); case 3: return getDateFormatter().formatDate(author); return committer.getName(); case 5: return getDateFormatter().formatDate(committer);