MCPcopy Create free account
hub / github.com/alibaba/open-code-review / isProviderDirExcluded

Function isProviderDirExcluded

internal/diff/git.go:343–345  ·  view source on GitHub ↗

isProviderDirExcluded reports whether relPath matches the provider's unconditional directory blocklist. A .gitignore negation cannot re-admit one of these paths.

(relPath string)

Source from the content-addressed store, hash-verified

341// unconditional directory blocklist. A .gitignore negation cannot re-admit
342// one of these paths.
343func isProviderDirExcluded(relPath string) bool {
344 return ProviderDirPrefix(relPath) != ""
345}
346
347// matchGitignorePattern checks if relPath matches a single .gitignore pattern.
348//

Callers 2

isPathExcludedMethod · 0.85
partitionDiffsFunction · 0.85

Calls 1

ProviderDirPrefixFunction · 0.85

Tested by

no test coverage detected