MCPcopy Create free account
hub / github.com/JordanCoin/codemap / FilterAnalysisToChanged

Function FilterAnalysisToChanged

scanner/git.go:147–155  ·  view source on GitHub ↗

FilterAnalysisToChanged filters FileAnalysis slice to only changed files

(files []FileAnalysis, changed map[string]bool)

Source from the content-addressed store, hash-verified

145
146// FilterAnalysisToChanged filters FileAnalysis slice to only changed files
147func FilterAnalysisToChanged(files []FileAnalysis, changed map[string]bool) []FileAnalysis {
148 var result []FileAnalysis
149 for _, f := range files {
150 if changed[f.Path] || changed[filepath.ToSlash(f.Path)] {
151 result = append(result, f)
152 }
153 }
154 return result
155}
156
157// ImpactInfo describes which changed files are used by other files
158type ImpactInfo struct {

Callers 3

buildBlastRadiusBundleFunction · 0.92
runDepsModeFunction · 0.92

Calls

no outgoing calls

Tested by 1