Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public Parser(PathMapper mapper)
 {
     _mapper = mapper;
 }