Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Confirmation and Warning messages when checking out a remote branch #242

Merged

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Aug 28, 2017

Fixes #241
Fixes #240

Depends on:

@StanleyGoldman StanleyGoldman requested a review from shana August 28, 2017 17:19
@shana shana changed the title Confirmation and Warning messages when crecking out a remote branch Confirmation and Warning messages when checking out a remote branch Aug 29, 2017
var originName = selectedNode.Name.Substring(0, indexOfFirstSlash);
var branchName = selectedNode.Name.Substring(indexOfFirstSlash + 1);

if (Repository.LocalBranches.Any(localBranch => localBranch.Name == branchName))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What we should be doing is checking if there's a branch that is tracking the same commit to determine whether the local branch exists, and offer to check that one out if it does. Probably something to consider for the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I thought about that, I'll open up a future issue for that.

@StanleyGoldman StanleyGoldman merged commit 6eba997 into fixes/branch-delete-button-enabled Aug 30, 2017
@StanleyGoldman StanleyGoldman deleted the fixes/clone-remote-branch branch August 30, 2017 13:12
@StanleyGoldman StanleyGoldman restored the fixes/clone-remote-branch branch August 30, 2017 13:21
@StanleyGoldman
Copy link
Contributor Author

Oh boo. I messed up and this PR didn't target master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants