public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager taskManager, IGitClient gitClient, SPath repositoryRoot) { var repositoryPathConfiguration = new RepositoryPathConfiguration(repositoryRoot); string filePath = repositoryPathConfiguration.DotGitConfig; var gitConfig = new GitConfig(filePath); var repositoryWatcher = new RepositoryWatcher(platform, repositoryPathConfiguration, taskManager.Token); return(new RepositoryManager(taskManager, gitConfig, repositoryWatcher, gitClient, repositoryPathConfiguration)); }
public RepositoryWatcher(IPlatform platform, RepositoryPathConfiguration paths, CancellationToken cancellationToken) { this.paths = paths; this.cancellationToken = cancellationToken; ignoredPaths = new[] { platform.Environment.UnityProjectPath.Combine("Library"), platform.Environment.UnityProjectPath.Combine("Temp") }; pauseEvent = new ManualResetEventSlim(); //disableNative = !platform.Environment.IsWindows; }