Skip to content

Commit

Permalink
If an edge already exists, don't run through the commit graph again. …
Browse files Browse the repository at this point in the history
…This should speed up the loading of the graph.
  • Loading branch information
nufyoot committed May 11, 2012
1 parent 06d2ebd commit 062da8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SeeGitApp/Models/RepositoryGraphBuilder.cs
Expand Up @@ -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)
Expand Down

0 comments on commit 062da8d

Please sign in to comment.