public void ExtractCommit(string revList, string latest) { string[] commitShas = revList.Split(' '); this.Sha = commitShas[0]; this.Parents = commitShas.AsEnumerable().Skip(1).Where(hash => hash != latest).ToArray(); this.Commit = repo.GetCommit(this.Sha); }