Permalink
Browse files

If an edge already exists, don't run through the commit graph again. …

…This should speed up the loading of the graph.
  • Loading branch information...
1 parent 06d2ebd commit 062da8deb5f01e088bb514dcbc16c626536d4a0a @nufyoot nufyoot committed May 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 SeeGitApp/Models/RepositoryGraphBuilder.cs
@@ -93,6 +93,10 @@ private void AddCommitsToGraph(Commit commit, CommitVertex childVertex)
_graph.AddEdge(edge);
_edges.Add(edge.Id, edge);
}
+ else
+ {
+ return;
+ }
}
foreach (var parent in commit.Parents)

0 comments on commit 062da8d

Please sign in to comment.