コード例 #1
0
ファイル: GitRef.cs プロジェクト: yangsufan/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(ISettingsValueGetter configFile)
        {
            string merge = configFile.GetValue(_mergeSettingName);

            return(merge.StartsWith(RefsHeadsPrefix) ? merge.Substring(11) : merge);
        }
コード例 #2
0
ファイル: GitRef.cs プロジェクト: pmiossec/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(ISettingsValueGetter configFile)
 {
     return configFile.GetValue(_remoteSettingName);
 }
コード例 #3
0
ファイル: GitRef.cs プロジェクト: yangsufan/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(ISettingsValueGetter configFile)
 {
     return(configFile.GetValue(_remoteSettingName));
 }
コード例 #4
0
ファイル: GitRef.cs プロジェクト: pmiossec/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(ISettingsValueGetter configFile)
 {
     string merge = configFile.GetValue(_mergeSettingName);
     return merge.StartsWith(RefsHeadsPrefix) ? merge.Substring(11) : merge;
 }