GitUI.FormSettings.SolveGitCommand C# (CSharp) Метод

SolveGitCommand() приватный статический Метод

private static SolveGitCommand ( ) : bool
Результат bool
        private static bool SolveGitCommand()
        {
            if (GitCommands.Settings.RunningOnWindows())
            {
                var command = GetWindowsCommandLocations()
                    .Select(cmd => cmd)
                    .Where(cmd => !string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(cmd, string.Empty)))
                    .FirstOrDefault();

                if (command != null)
                {
                    GitCommands.Settings.GitCommand = command;
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else
            {
                GitCommands.Settings.GitCommand = "git";
                if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitCommand, "")))
                {
                    return false;
                }
            }

            return true;
        }
FormSettings