Beispiel #1
0
        public List <Commit> GetCommitsFromRepository(Guid repositoryId)
        {
            var list = new List <Commit>();
            var repo = _repositoriesService.GetRepository(repositoryId);

            foreach (var item in repo.Branches)
            {
                list.AddRange(item.Commits);
            }
            return(list);
        }
Beispiel #2
0
        public List <Branch> GetBranches(Guid repositoryId)
        {
            var repository = _repositoryService.GetRepository(repositoryId);

            return(repository.Branches);
        }