Пример #1
0
 public static bool HasBranch(this GitHttpClient gitClient, Guid repoId, string branch)
 {
     return(gitClient.GetBranch(repoId, branch) != null);
 }
Пример #2
0
        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));
        }