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); }
public void Merge(Branch other) { throw new NotImplementedException(); }