diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-30 17:14:50 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-30 17:14:50 +0900 |
commit | a5c0a8dfa57a66bdbeb65138dd565df3154ea9bd (patch) | |
tree | 7cd4e06c14d56192a40614d0805eb75177ea1e1e /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java | |
parent | d54fc955beee41714c648c7b1188d32792bb0a8e (diff) | |
download | jgit-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/src/org/eclipse/jgit/pgm/TextBuiltin.java')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java | 7 |
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); |