private void Blame_CommandClick(object sender, CommitInfo.CommandEventArgs e) { if (e.Command == "gotocommit") { if (Module.TryResolvePartialCommitId(e.Data, out var objectId)) { FileChanges.SetSelectedRevision(objectId); } } else if (e.Command == "gotobranch" || e.Command == "gototag") { CommitData commit = _commitDataManager.GetCommitData(e.Data, out _); if (commit != null) { FileChanges.SetSelectedRevision(new GitRevision(commit.ObjectId)); } } else if (e.Command == "navigatebackward") { FileChanges.NavigateBackward(); } else if (e.Command == "navigateforward") { FileChanges.NavigateForward(); } }
private void Blame_CommandClick(object sender, CommitInfo.CommandEventArgs e) { if (e.Command == "gotocommit") { FileChanges.SetSelectedRevision(_longShaProvider.Get(e.Data)); } else if (e.Command == "gotobranch" || e.Command == "gototag") { CommitData commit = _commitDataManager.GetCommitData(e.Data, out _); if (commit != null) { FileChanges.SetSelectedRevision(new GitRevision(commit.Guid)); } } else if (e.Command == "navigatebackward") { FileChanges.NavigateBackward(); } else if (e.Command == "navigateforward") { FileChanges.NavigateForward(); } }
private void Blame_CommandClick(object sender, CommitInfo.CommandEventArgs e) { if (e.Command == "gotocommit") { FileChanges.SetSelectedRevision(GitRevision.CreateForShortSha1(Module, e.Data)); } else if (e.Command == "gotobranch" || e.Command == "gototag") { string error = ""; CommitData commit = _commitDataManager.GetCommitData(e.Data, ref error); if (commit != null) { FileChanges.SetSelectedRevision(new GitRevision(Module, commit.Guid)); } } else if (e.Command == "navigatebackward") { FileChanges.NavigateBackward(); } else if (e.Command == "navigateforward") { FileChanges.NavigateForward(); } }