private static void Main() { if (OperatingSystem.IsWindows()) { Win32Console.Initialize(); } var repositoryPath = ResolveRepositoryPath(); if (string.IsNullOrEmpty(repositoryPath)) { Console.WriteLine("fatal: Not a git repository"); return; } var pathToGit = ResolveGitPath(); if (string.IsNullOrEmpty(pathToGit)) { Console.WriteLine("fatal: git is not in your path"); return; } var keyBindings = KeyBindings.Load(); var application = new Application(repositoryPath, pathToGit, keyBindings); application.Run(); }
private static void Main() { if (Win32Console.IsSupported) { Win32Console.Initialize(); } var repositoryPath = ResolveRepositoryPath(); if (string.IsNullOrEmpty(repositoryPath)) { Console.WriteLine("fatal: Not a git repository"); return; } var pathToGit = ResolveGitPath(); if (string.IsNullOrEmpty(pathToGit)) { Console.WriteLine("fatal: git is not in your path"); return; } var application = new Application(repositoryPath, pathToGit); application.Run(); }