Example #1
0
        void RefreshGraph(LogRetriever logRetriever)
        {
            var commits       = logRetriever.GetRecentCommits().ToArray();
            var activeRefName = logRetriever.GetActiveReferenceName();

            var reachableCommitHashes = commits.Select(c => c.Hash).ToArray();
            var unreachableHashes     = logRetriever.GetRecentUnreachableCommitHashes();
            var unreachableCommits    = logRetriever
                                        .GetSpecificCommits(unreachableHashes)
                                        .Where(c => !reachableCommitHashes.Contains(c.Hash))
                                        .ToArray();

            _graph = GenerateGraphFromCommits(commits, activeRefName, unreachableCommits);
            OnPropertyChanged("Graph");
        }
Example #2
0
        void RefreshGraph(LogRetriever logRetriever)
        {
            var commits       = logRetriever.GetRecentCommits(NumOfCommitsToShow).ToArray();
            var activeRefName = logRetriever.GetActiveReferenceName();

            var reachableCommitHashes = commits.Select(c => c.Hash).ToArray();
            var unreachableHashes     = logRetriever.GetRecentUnreachableCommitHashes();
            IEnumerable <Commit> unreachableCommits = null;

            if (VisualizeUnreachable)
            {
                unreachableCommits = logRetriever
                                     .GetSpecificCommits(unreachableHashes)
                                     .Where(c => !reachableCommitHashes.Contains(c.Hash))
                                     .ToArray();
            }

            Graph = GenerateGraphFromCommits(commits, activeRefName, unreachableCommits);
        }
Example #3
0
        void RefreshGraph(LogRetriever logRetriever)
        {
            var commits = logRetriever.GetRecentCommits().ToArray();
            var activeRefName = logRetriever.GetActiveReferenceName();

            var reachableCommitHashes = commits.Select(c => c.Hash).ToArray();
            var unreachableHashes = logRetriever.GetRecentUnreachableCommitHashes();
            var unreachableCommits = logRetriever
                .GetSpecificCommits(unreachableHashes)
                .Where(c => !reachableCommitHashes.Contains(c.Hash))
                .ToArray();

            _graph = GenerateGraphFromCommits(commits, activeRefName, unreachableCommits);
            OnPropertyChanged("Graph");
        }