org.eclipse.jgit.util.FS.getGitSystemConfig()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中org.eclipse.jgit.util.FS.getGitSystemConfig()方法的一些代码示例,展示了FS.getGitSystemConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FS.getGitSystemConfig()方法的具体详情如下:
包路径:org.eclipse.jgit.util.FS
类名称:FS
方法名:getGitSystemConfig

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);
}

相关文章