Exemplo n.º 1
0
        public void CheckoutBranch(string branch)
        {
            var defaultRemote = _gitModule.GetCurrentRemote();

            var remoteBranch = $"{defaultRemote}/{branch}";

            _gitUiCommands.RepoChangedNotifier.Lock();

            var gitFetchCmfArgs = _gitModule.FetchCmd(string.Empty, string.Empty, string.Empty);

            FormProcess.ShowDialog((GitModuleForm)_ownerForm, gitFetchCmfArgs);

            _gitUiCommands.RepoChangedNotifier.Notify();

            _gitUiCommands.StartCheckoutRemoteBranch(_ownerForm, remoteBranch);

            _gitUiCommands.RepoChangedNotifier.UnLock(requestNotify: true);
        }