コード例 #1
0
ファイル: GitRef.cs プロジェクト: Carbenium/gitextensions
 /// <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
ファイル: GitRef.cs プロジェクト: Carbenium/gitextensions
 /// <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
ファイル: GitRef.cs プロジェクト: KurtDeGreeff/gitextensions
        /// <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
ファイル: GitRef.cs プロジェクト: KurtDeGreeff/gitextensions
 /// <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));
 }
コード例 #7
0
 public static string GetDiffToolFromConfig(ConfigFileSettings settings)
 {
     if (GitCommandHelpers.VersionInUse.GuiDiffToolExist)
         return settings.GetValue("diff.guitool");
     return settings.GetValue("diff.tool");
 }