public void Initialize(string projectBase, string cachePath, IFilter fileFilter, string workItemRegex) { _startDirectory = projectBase; _cachePath = cachePath; _workItemRegex = workItemRegex; _fileFilter = fileFilter; _gitHistoryExportFile = Path.Combine(cachePath, "git_history.json"); _contributionFile = Path.Combine(cachePath, "contribution.json"); _gitCli = new GitCommandLine(_startDirectory); _mapper = new PathMapper(_startDirectory); }
public virtual void Initialize(string projectBase, string cachePath, string workItemRegex) { _projectBase = projectBase; _cachePath = cachePath; _workItemRegex = workItemRegex; _historyFile = Path.Combine(cachePath, "git_history.json"); _contributionFile = Path.Combine(cachePath, "contribution.json"); _gitCli = new GitCommandLine(_projectBase); // "/" maps to _startDirectory _mapper = new PathMapper(_projectBase); }
public GitDebugHelper(string directory, GitCommandLine cmd) { _gitCli = cmd; _debugLogFile = File.CreateText(Path.Combine(directory, "debug.txt")); _debugLogFile.AutoFlush = true; _directory = directory; if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } }