private static RepoDistSettings CreateDistributed(GitModule aModule, RepoDistSettings aLowerPriority, bool allowCache = true) { return(new RepoDistSettings(aLowerPriority, GitExtSettingsCache.Create(Path.Combine(aModule.WorkingDir, AppSettings.SettingsFileName), allowCache))); }
public static RepoDistSettings CreateGlobal(bool allowCache = true) { return(new RepoDistSettings(null, GitExtSettingsCache.Create(AppSettings.SettingsFilePath, allowCache))); }
private static RepoDistSettings CreateLocal(GitModule aModule, RepoDistSettings aLowerPriority, bool allowCache = true) { //if (aModule.IsBareRepository() return(new RepoDistSettings(aLowerPriority, GitExtSettingsCache.Create(Path.Combine(aModule.WorkingDirGitDir(), AppSettings.SettingsFileName), allowCache))); }