summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-06-24 18:18:46 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-06-25 17:46:40 -0700
commitc9c57d34debe1a522c715d416e68e3d1a5b18a1a (patch)
treefadee1dce7a908ba8b02811568f38a6c62d189bc
parent6a822f0ebfd8b37bffbb680fa05b8783701ae15e (diff)
downloadjgit-c9c57d34debe1a522c715d416e68e3d1a5b18a1a.tar.gz
jgit-c9c57d34debe1a522c715d416e68e3d1a5b18a1a.zip
Rename Repository 'config' as 'repoConfig'
This better matches with the other configuration variable, 'userConfig', and helps to make it clear what config object we are dealing with. Change-Id: I2c585649aecc805e8e66db2f094828cd2649e549 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 78fe6065a0..4a4969841d 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -110,7 +110,7 @@ public class Repository {
private final FileBasedConfig userConfig;
- private final FileBasedConfig config;
+ private final FileBasedConfig repoConfig;
private final RefDatabase refs;
@@ -244,10 +244,10 @@ public class Repository {
this.fs = fs;
userConfig = SystemReader.getInstance().openUserConfig(fs);
- config = new FileBasedConfig(userConfig, fs.resolve(gitDir, "config"));
+ repoConfig = new FileBasedConfig(userConfig, fs.resolve(gitDir, "config"));
loadUserConfig();
- loadConfig();
+ loadRepoConfig();
if (workDir == null) {
// if the working directory was not provided explicitly,
@@ -317,9 +317,9 @@ public class Repository {
}
}
- private void loadConfig() throws IOException {
+ private void loadRepoConfig() throws IOException {
try {
- config.load();
+ repoConfig.load();
} catch (ConfigInvalidException e1) {
IOException e2 = new IOException(JGitText.get().unknownRepositoryFormat);
e2.initCause(e1);
@@ -417,14 +417,14 @@ public class Repository {
throw new RuntimeException(e);
}
}
- if (config.isOutdated()) {
+ if (repoConfig.isOutdated()) {
try {
- loadConfig();
+ loadRepoConfig();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
- return config;
+ return repoConfig;
}
/**