Browse Source

Merge: Avoid non-localised literal string warning for "recursive"

Instead of using the literal string, take the name from the RECURSIVE
enum value.

Change-Id: I9d8f289232dfc8f784287029c41714ddbdee232b
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.4
David Pursehouse 6 years ago
parent
commit
c648a38a47
  1. 13
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Merge.java

13
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Merge.java

@ -195,14 +195,11 @@ class Merge extends TextBuiltin {
}
break;
case MERGED:
String name;
if (!isMergedInto(oldHead, src)) {
name = mergeStrategy.getName();
} else {
name = "recursive"; //$NON-NLS-1$
}
outw.println(
MessageFormat.format(CLIText.get().mergeMadeBy, name));
MergeStrategy strategy = isMergedInto(oldHead, src)
? MergeStrategy.RECURSIVE
: mergeStrategy;
outw.println(MessageFormat.format(CLIText.get().mergeMadeBy,
strategy.getName()));
break;
case MERGED_NOT_COMMITTED:
outw.println(

Loading…
Cancel
Save