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

Function resolveRepoFileCount

handoff/build.go:598–609  ·  view source on GitHub ↗
(root string, state *watch.State)

Source from the content-addressed store, hash-verified

596}
597
598func resolveRepoFileCount(root string, state *watch.State) int {
599 if state != nil && state.FileCount > 0 {
600 return state.FileCount
601 }
602
603 gitCache := scanner.NewGitIgnoreCache(root)
604 files, err := scanner.ScanFiles(root, gitCache, nil, nil)
605 if err != nil {
606 return 0
607 }
608 return len(files)
609}
610
611func dependencyImportersForHandoff(root string, state *watch.State, fileCount int) map[string][]string {
612 if state != nil && len(state.Importers) > 0 {

Callers 1

BuildFunction · 0.85

Calls 2

NewGitIgnoreCacheFunction · 0.92
ScanFilesFunction · 0.92

Tested by

no test coverage detected