public void OnPushAllCommand(object sender) { if (_gitRepository.TryGetTarget(out IGitRepository gitRepository) == false) { return; } string stashMessage = UIService.AskAndGetString("Enter stash message", ""); if (string.IsNullOrEmpty(stashMessage)) { return; } string cmd = GitCommandCreator.StashPushAll(stashMessage); gitRepository.CreateGitRunner().RunInConsoleProgressWindow(cmd); gitRepository.Refresh(); }
public void OnCreateTagCommand(object parameter) { if (_gitRepository.TryGetTarget(out IGitRepository gitRepository) == false) { return; } if (SelectedHistoryStatus == null) { return; } string tagName = UIService.AskAndGetString("Enter tag name", ""); if (tagName == null) { return; } gitRepository.GetGitWrapper().CreateTag(SelectedHistoryStatus.CommitId, tagName); gitRepository.Refresh(); }