Beispiel #1
0
 public RepositoryGraph Graph(GraphParameters parameters)
 {
     _parameters = parameters;
     var graph = new RepositoryGraph();
     if (_repository == null)
     {
         return graph;
     }
     _contents = new GraphContents();
     _repository.Commits
                .QueryBy(new Filter {SortBy = GitSortOptions.Topological | GitSortOptions.Time, Since = _repository.Refs})
                .ForEach(AddCommit);
     AddTagAnnotations();
     AddReferences();
     AddUnreachableCommits();
     // todo add notes?
     AddIndex();
     graph.Set(_contents);
     return graph;
 }
        public RepositoryGraph Graph(GraphParameters parameters)
        {
            _parameters = parameters;
            var graph = new RepositoryGraph();

            if (_repository == null)
            {
                return(graph);
            }
            _contents = new GraphContents();
            _repository.Commits
            .QueryBy(new Filter {
                SortBy = GitSortOptions.Topological | GitSortOptions.Time, Since = _repository.Refs
            })
            .ForEach(AddCommit);
            AddTagAnnotations();
            AddReferences();
            AddUnreachableCommits();
            // todo add notes?
            AddIndex();
            graph.Set(_contents);
            return(graph);
        }