public string RemoteCommitHashAtBranch(string branch) { if (RemoteBranches == null) { RemoteBranches = GetRemoteBranches(); } return(RemoteBranches.First(b => b.Name == branch).CommitHash); }
public override string ToString() {// Local: 'master' merges onto master return(string.Format( "Local '{0}' {1}s {2} '{3}'", LocalBranch, Config.ToString().ToLowerInvariant(), Config == MergeAction.Merge ? "with" : "onto", RemoteBranches.Count() == 1 ? RemoteBranches.First() : "(many)")); }