[git] reset dialog: take "by" out of "<code>"

This commit is contained in:
Kirill Likhodedov
2014-08-06 16:58:49 +04:00
parent 1e81d47099
commit 672d5a4905
@@ -118,7 +118,7 @@ public class GitNewResetDialog extends DialogWrapper {
@NotNull
private static String getTargetText(@NotNull VcsFullCommitDetails commit) {
String commitMessage = StringUtil.shortenTextWithEllipsis(commit.getSubject(), 20, 0);
return "<code>" + commit.getId().toShortString() + " \"" + commitMessage + "\" by " + commit.getAuthor().getName() + "</code>";
return String.format("<code>%s \"%s\"</code> by <code>%s</code>", commit.getId().toShortString(), commitMessage, commit.getAuthor().getName());
}
@NotNull