public bool SolveMergeToolPathForKDiff() { string kdiff3path = MergeToolsHelper.FindPathForKDiff(GlobalConfigFileSettings.GetValue("mergetool.kdiff3.path")); if (string.IsNullOrEmpty(kdiff3path)) { return(false); } GlobalConfigFileSettings.SetPathValue("mergetool.kdiff3.path", kdiff3path); return(true); }
public bool SolveMergeToolPathForKDiff() { string kdiff3path = MergeToolsHelper.FindPathForKDiff(_gitModule.GetGlobalSetting("mergetool.kdiff3.path")); if (string.IsNullOrEmpty(kdiff3path)) { return(false); } _gitModule.SetGlobalPathSetting("mergetool.kdiff3.path", kdiff3path); return(true); }
public void AutoConfigMergeToolCmd() { string exeFile = MergeToolsHelper.FindMergeToolFullPath(CommonLogic.ConfigFileSettingsSet, GetGlobalMergeToolText(), out _); if (string.IsNullOrEmpty(exeFile)) { SetMergetoolPathText(""); SetMergeToolCmdText(""); } SetMergetoolPathText(exeFile); SetMergeToolCmdText(MergeToolsHelper.AutoConfigMergeToolCmd(GetGlobalMergeToolText(), exeFile)); }
public void AutoConfigMergeToolCmd(bool silent) { string exeName; string exeFile = MergeToolsHelper.FindMergeToolFullPath(CommonLogic.ConfigFileSettingsSet, GetGlobalMergeToolText(), out exeName); if (String.IsNullOrEmpty(exeFile)) { SetMergetoolPathText(""); SetMergeToolCmdText(""); if (!silent) { MessageBox.Show(/*this, */ String.Format(ToolSuggestPathText.Text, exeName), MergeToolSuggestCaption.Text); } return; } SetMergetoolPathText(exeFile); SetMergeToolCmdText(MergeToolsHelper.AutoConfigMergeToolCmd(GetGlobalMergeToolText(), exeFile)); }