diff options
author | Tomasz Zarna | 2012-01-02 12:24:36 +0000 |
---|---|---|
committer | Matthias Sohn | 2012-01-02 12:24:36 +0000 |
commit | 5d95cd9418a20ff72930d4549429d778181eb9ed (patch) | |
tree | 7052a6b8e05edf6e87bc05e8a27f8142cb0437ed /org.eclipse.jgit/src/org/eclipse/jgit/lib | |
parent | 617c5d91da98a09d94b012b4547164bebbf290d1 (diff) | |
download | jgit-5d95cd9418a20ff72930d4549429d778181eb9ed.tar.gz jgit-5d95cd9418a20ff72930d4549429d778181eb9ed.tar.xz jgit-5d95cd9418a20ff72930d4549429d778181eb9ed.zip |
Add constant for default name for the Git repo configuration
Change-Id: I5a6ef686c444fb1e46c9f784bad01165471ef372
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java | 2 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java index e4cecac777..22a2ae505d 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java @@ -623,7 +623,7 @@ public class BaseRepositoryBuilder<B extends BaseRepositoryBuilder, R extends Re // the user file, as these parameters must be unique to this // repository and not inherited from other files. // - File path = safeFS().resolve(getGitDir(), "config"); + File path = safeFS().resolve(getGitDir(), Constants.CONFIG); FileBasedConfig cfg = new FileBasedConfig(path, safeFS()); try { cfg.load(); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java index 6621e54c5a..f6dff99986 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java @@ -322,6 +322,9 @@ public final class Constants { /** Default name for the Git repository directory */ public static final String DOT_GIT = ".git"; + /** Default name for the Git repository configuration */ + public static final String CONFIG = "config"; + /** A bare repository typically ends with this string */ public static final String DOT_GIT_EXT = ".git"; |