Example #1
0
    /// <summary>
    /// Checks out the commit specified by the given commit ID on the specified branch
    /// </summary>
    public void Checkout(IBranch branch, Guid commitId)
    {
        ICommit commit = branch.GetTip();

        while (!commit.GetId().Equals(commitId))
        {
            commit = commit.GetParent();
        }
        Checkout(branch, commit);
    }