예제 #1
0
        public void UpdateCache(Progress progress, bool includeContributions)
        {
            Clear();

            progress.Message("Updating source control history.");

            var supportedFilesFilter = new ExtensionIncludeFilter(_supportedFileTypesForAnalysis);

            // Note: You should have the latest code locally such that history and metrics match!
            _sourceProvider.UpdateCache(progress, includeContributions, supportedFilesFilter);

            progress.Message("Updating code metrics.");

            // Update code metrics
            _metricsProvider.UpdateLinesOfCodeCache(_sourceProvider.BaseDirectory, _outputPath, _supportedFileTypesForAnalysis);

            Warnings = _sourceProvider.Warnings;

            LoadCachedData();
        }