public static bool HasBranch(this GitHttpClient gitClient, Guid repoId, string branch) { return(gitClient.GetBranch(repoId, branch) != null); }
public static GitRef CreateBranch(this GitHttpClient gitClient, Guid repoId, string sourceRefName, string fullBranchName) { var sourceRef = gitClient.GetBranch(repoId, sourceRefName); return(gitClient.CreateBranch(repoId, sourceRef, fullBranchName)); }