summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-09-30 17:14:50 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-09-30 17:14:50 +0900
commita5c0a8dfa57a66bdbeb65138dd565df3154ea9bd (patch)
tree7cd4e06c14d56192a40614d0805eb75177ea1e1e /org.eclipse.jgit.pgm
parentd54fc955beee41714c648c7b1188d32792bb0a8e (diff)
downloadjgit-a5c0a8dfa57a66bdbeb65138dd565df3154ea9bd.tar.gz
jgit-a5c0a8dfa57a66bdbeb65138dd565df3154ea9bd.zip
ConfigConstants: Add constants for i18n.logOutputEncoding
Change-Id: I6073c7fc8ec30840e2ee2e90ac4cfdb136f48b9a Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
index b84a0fd7d4..392d1131c4 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
@@ -45,6 +45,8 @@
package org.eclipse.jgit.pgm;
import static java.nio.charset.StandardCharsets.UTF_8;
+import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_SECTION_I18N;
+import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_LOG_OUTPUT_ENCODING;
import static org.eclipse.jgit.lib.Constants.R_HEADS;
import static org.eclipse.jgit.lib.Constants.R_REMOTES;
import static org.eclipse.jgit.lib.Constants.R_TAGS;
@@ -181,9 +183,10 @@ public abstract class TextBuiltin {
protected void init(Repository repository, String gitDir) {
Charset charset = UTF_8;
if (repository != null) {
- String logOutputEncoding = repository.getConfig().getString("i18n", //$NON-NLS-1$
+ String logOutputEncoding = repository.getConfig().getString(
+ CONFIG_SECTION_I18N,
null,
- "logOutputEncoding");//$NON-NLS-1$
+ CONFIG_KEY_LOG_OUTPUT_ENCODING);
if (logOutputEncoding != null) {
try {
charset = Charset.forName(logOutputEncoding);