예제 #1
0
        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();
        }
예제 #2
0
        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();
        }