本文整理了Java中org.eclipse.jgit.util.FS.getGitSystemConfig()
方法的一些代码示例,展示了FS.getGitSystemConfig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FS.getGitSystemConfig()
方法的具体详情如下:
包路径:org.eclipse.jgit.util.FS
类名称:FS
方法名:getGitSystemConfig
[英]Get the currently used path to the system-wide Git configuration file.
[中]获取系统范围Git配置文件的当前使用路径。
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
@Override
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
File configFile = fs.getGitSystemConfig();
if (configFile == null) {
return new FileBasedConfig(null, fs) {
@Override
public void load() {
// empty, do not load
}
@Override
public boolean isOutdated() {
// regular class would bomb here
return false;
}
};
}
return new FileBasedConfig(parent, configFile, fs);
}
代码示例来源:origin: sonia.jgit/org.eclipse.jgit
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
File configFile = fs.getGitSystemConfig();
if (configFile == null) {
return new FileBasedConfig(null, fs) {
public void load() {
// empty, do not load
}
public boolean isOutdated() {
// regular class would bomb here
return false;
}
};
}
return new FileBasedConfig(parent, configFile, fs);
}
代码示例来源:origin: berlam/github-bucket
@Override
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
File configFile = fs.getGitSystemConfig();
if (configFile == null) {
return new FileBasedConfig(null, fs) {
@Override
public void load() {
// empty, do not load
}
@Override
public boolean isOutdated() {
// regular class would bomb here
return false;
}
};
}
return new FileBasedConfig(parent, configFile, fs);
}
代码示例来源:origin: com.sap.cloud.lm.sl.cf/com.sap.cloud.lm.sl.cf.process
@Override
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
File configFile = fs.getGitSystemConfig();
if (configFile == null) {
return new FileBasedConfig(null, fs) {
public void load() {
// empty, do not load
}
public boolean isOutdated() {
// regular class would bomb here
return false;
}
};
}
return new FileBasedConfig(parent, configFile, fs);
}
代码示例来源:origin: cloudfoundry-incubator/multiapps-controller
@Override
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
File configFile = fs.getGitSystemConfig();
if (configFile == null) {
return new FileBasedConfig(null, fs) {
public void load() {
// empty, do not load
}
public boolean isOutdated() {
// regular class would bomb here
return false;
}
};
}
return new FileBasedConfig(parent, configFile, fs);
}
内容来源于网络,如有侵权,请联系作者删除!