Esempio n. 1
0
 public void UpdateBranch()
 {
     var repo = new Repository(db);
     var master = new Branch(repo, "refs/heads/master");
     var origin_master = new Branch(repo, "refs/remotes/origin/master");
     origin_master.Update(master);
     Assert.AreEqual(master.CurrentCommit.Hash, origin_master.CurrentCommit.Hash);
     var remote_head = repo.Refs["refs/remotes/origin/master"];
     Assert.AreEqual(master.CurrentCommit.Hash, remote_head.Target.Hash);
 }
Esempio n. 2
0
 public void Merge(Branch other)
 {
     throw new NotImplementedException();
 }