Пример #1
0
 public static bool RemoteBranchExists(string branch)
 {
     return(ProcessHelper.StartProcessGit($"show-ref refs/remotes/origin/{branch}"));
 }
Пример #2
0
 /// <summary>
 /// Do we have any stashes available
 /// </summary>
 /// <returns></returns>
 public static async Task <bool> HasStash()
 => await ProcessHelper.StartProcessGit("stash list");
Пример #3
0
 public static GitConfig GetGitConfig()
 {
     return(new GitConfig(ProcessHelper.StartProcessGitResult("config --get-regexp gitflow")));
 }
Пример #4
0
 public static async Task <bool> RemoteBranchExists(string branch)
 {
     return(await ProcessHelper.StartProcessGit($"show-ref refs/remotes/origin/{branch}"));
 }