public void MonitorRepository(string repositoryWorkingPath) { if (repositoryWorkingPath == null) { return; } string gitPath = ModelExtensions.GetGitRepositoryPath(repositoryWorkingPath); if (!Directory.Exists(gitPath)) { MonitorForRepositoryCreation(repositoryWorkingPath); return; } RepositoryPath = repositoryWorkingPath; _graphBuilder = _graphBuilderThunk(gitPath); RepositoryPath = Directory.GetParent(gitPath).FullName; Graph = _graphBuilder.Graph(); if (_graph.VertexCount > 1) { _graph.LayoutAlgorithmType = "EfficientSugiyama"; } Graph = Graph; MonitorForRepositoryChanges(gitPath); }
public void MonitorRepository(string repositoryWorkingPath) { if (repositoryWorkingPath == null) { return; } var gitPath = ModelExtensions.GetGitRepositoryPath(repositoryWorkingPath); if (!Directory.Exists(gitPath)) { MonitorForRepositoryCreation(repositoryWorkingPath); return; } RepositoryPath = repositoryWorkingPath; _graphBuilder = _graphBuilderThunk(gitPath); RepositoryPath = Directory.GetParent(gitPath).FullName; LayoutAlgorithmType = "Tree"; Refresh(); MonitorForRepositoryChanges(gitPath); }
public void Refresh() { string gitPath = ModelExtensions.GetGitRepositoryPath(RepositoryPath); if (!Directory.Exists(gitPath)) { MonitorRepository(RepositoryPath); } else { Graph = _graphBuilder.Graph(); } }
public void MonitorRepository(string repositoryWorkingPath) { if (repositoryWorkingPath == null) { return; } string gitPath = ModelExtensions.GetGitRepositoryPath(repositoryWorkingPath); _graphBuilder = _graphBuilderThunk(gitPath); RepositoryPath = Directory.GetParent(gitPath).FullName; Graph = _graphBuilder.Graph(); if (!Directory.Exists(gitPath)) { MonitorForRepositoryCreation(RepositoryPath); } else { MonitorForRepositoryChanges(gitPath); } }