예제 #1
0
        internal static BranchWrapper CreateBranchWrapperFromBranch(Branch branch)
        {
            var result = new BranchWrapper();

            result._branch = branch;
            return(result);
        }
예제 #2
0
        public BranchWrapper Checkout(string branchName)
        {
            Branch branch = repository.Branches[branchName];

            if (branch == null)
            {
                Helper.WriteLog(branchName);
                return(null);
            }

            Branch currentBranch = Commands.Checkout(repository, branch);

            return(BranchWrapper.CreateBranchWrapperFromBranch(currentBranch));
        }