/// <summary> /// This method is a faster than the property above. The property reads the config file /// every time it is accessed. This method accepts a configfile what makes it faster when loading /// the revisiongraph. /// </summary> public string GetMergeWith(ConfigFileSettings configFile) { string merge = configFile.GetValue(_mergeSettingName); return merge.StartsWith(RefsHeadsPrefix) ? merge.Substring(11) : merge; }
public static string GetDiffToolFromConfig(ConfigFileSettings settings) { return settings.GetValue("diff.guitool"); }
/// <summary> /// This method is a faster than the property above. The property reads the config file /// every time it is accessed. This method accepts a config file what makes it faster when loading /// the revision graph. /// </summary> public string GetTrackingRemote(ConfigFileSettings configFile) { return configFile.GetValue(_remoteSettingName); }
public static string GetDiffToolFromConfig(ConfigFileSettings settings) { return(settings.GetValue("diff.guitool")); }
/// <summary> /// This method is a faster than the property above. The property reads the config file /// every time it is accessed. This method accepts a configfile what makes it faster when loading /// the revisiongraph. /// </summary> public string GetMergeWith(ConfigFileSettings configFile) { string merge = configFile.GetValue(_mergeSettingName); return(merge.StartsWith(RefsHeadsPrefix) ? merge.Substring(11) : merge); }
/// <summary> /// This method is a faster than the property above. The property reads the config file /// every time it is accessed. This method accepts a config file what makes it faster when loading /// the revision graph. /// </summary> public string GetTrackingRemote(ConfigFileSettings configFile) { return(configFile.GetValue(_remoteSettingName)); }
public static string GetDiffToolFromConfig(ConfigFileSettings settings) { if (GitCommandHelpers.VersionInUse.GuiDiffToolExist) return settings.GetValue("diff.guitool"); return settings.GetValue("diff.tool"); }