Ejemplo n.º 1
0
 private void PickAnotherBranch(GitRevision preSelectCommit, ref string displayStr, ref GitRevision revision)
 {
     using (var form = new FormCompareToBranch(UICommands, preSelectCommit.Guid))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             displayStr = form.BranchName;
             revision   = new GitRevision(Module.RevParse(form.BranchName));
             PopulateDiffFiles();
         }
     }
 }
Ejemplo n.º 2
0
 private void btnPickAnotherBranch_Click(object sender, EventArgs e)
 {
     using (var form = new FormCompareToBranch(UICommands, _leftRevision.Guid))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             _leftDisplayStr = form.BranchName;
             _leftRevision   = new GitRevision(Module, Module.RevParse(form.BranchName));
             PopulateDiffFiles();
         }
     }
 }
Ejemplo n.º 3
0
 private void PickAnotherBranch(GitRevision preSelectCommit, ref string displayStr, [CanBeNull] ref GitRevision revision)
 {
     using (var form = new FormCompareToBranch(UICommands, preSelectCommit.ObjectId))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             displayStr = form.BranchName;
             var objectId = Module.RevParse(form.BranchName);
             revision = objectId == null ? null : new GitRevision(objectId);
             PopulateDiffFiles();
         }
     }
 }
Ejemplo n.º 4
0
 private void CompareToBranchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var headCommit = this.GetSelectedRevisions().First();
     using (var form = new FormCompareToBranch(UICommands, headCommit.Guid))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             var baseCommit = Module.RevParse(form.BranchName);
             using (var diffForm = new FormDiff(UICommands, this, baseCommit, headCommit.Guid,
                 form.BranchName, headCommit.Subject))
             {
                 diffForm.ShowDialog(this);
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void PickAnotherBranch(GitRevision preSelectCommit, ref string displayStr, ref GitRevision revision)
 {
     using (var form = new FormCompareToBranch(UICommands, preSelectCommit.Guid))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             displayStr = form.BranchName;
             revision = new GitRevision(Module, Module.RevParse(form.BranchName));
             PopulateDiffFiles();
         }
     }
 }