public void LaunchGitExtensions() { if (!Directory.Exists(Info.Path)) { MessageBoxes.SubmoduleDirectoryDoesNotExist(owner: null, Info.Path, Info.Text); return; } GitUICommands.LaunchBrowse(workingDir: Info.Path.EnsureTrailingPathSeparator(), ObjectId.WorkTreeId, Info?.Detailed?.RawStatus?.OldCommit); }
private void OpenRepo(string repoPath, Action <object, GitModuleEventArgs> setGitModule) { if (Control.ModifierKeys != Keys.Control) { ChangeWorkingDir(repoPath, setGitModule); return; } GitUICommands.LaunchBrowse(repoPath); }
public void LaunchGitExtensions() { GitUICommands.LaunchBrowse(workingDir: Info.Path.EnsureTrailingPathSeparator(), ObjectId.WorkTreeId, Info?.Detailed?.RawStatus?.OldCommit); }
private void SpawnCommitBrowser(GitItem item) { GitUICommands.LaunchBrowse(workingDir: _fullPathResolver.Resolve(item.FileName.EnsureTrailingPathSeparator()), selectedId: item.ObjectId); }
private void btOpenSubmodule_Click(object sender, EventArgs e) { GitUICommands.LaunchBrowse(workingDir: Module.GetSubmoduleFullPath(_filename)); }