From 672d5a4905bf751b02b211675c1f686929d49e49 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Wed, 6 Aug 2014 16:15:13 +0400 Subject: [PATCH] [git] reset dialog: take "by" out of "" --- plugins/git4idea/src/git4idea/reset/GitNewResetDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/reset/GitNewResetDialog.java b/plugins/git4idea/src/git4idea/reset/GitNewResetDialog.java index a053248dfdb9..0daa8428cc03 100644 --- a/plugins/git4idea/src/git4idea/reset/GitNewResetDialog.java +++ b/plugins/git4idea/src/git4idea/reset/GitNewResetDialog.java @@ -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 "" + commit.getId().toShortString() + " \"" + commitMessage + "\" by " + commit.getAuthor().getName() + ""; + return String.format("%s \"%s\" by %s", commit.getId().toShortString(), commitMessage, commit.getAuthor().getName()); } @NotNull