internal static BranchWrapper CreateBranchWrapperFromBranch(Branch branch) { var result = new BranchWrapper(); result._branch = branch; return(result); }
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)); }