private void BranchSelectedValueChanged(object sender, EventArgs e)
{
if (Branch.Text != HeadText)
{
if (PullFromRemote.Checked)
{
GitHead branch = Branch.SelectedItem as GitHead;
if (branch != null && branch.TrackingRemote.Equals(Remotes.Text.Trim()))
{
RemoteBranch.Text = branch.MergeWith;
if (!string.IsNullOrEmpty(RemoteBranch.Text))
return;
}
}
RemoteBranch.Text = Branch.Text;
}
}