示例#1
0
 /// <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;
 }
示例#2
0
 public static string GetDiffToolFromConfig(ConfigFileSettings settings)
 {
     return settings.GetValue("diff.guitool");
 }
示例#3
0
 /// <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);
 }
示例#4
0
 public static string GetDiffToolFromConfig(ConfigFileSettings settings)
 {
     return(settings.GetValue("diff.guitool"));
 }
示例#5
0
        /// <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);
        }
示例#6
0
 /// <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");
 }