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

Struct DiffSet

internal/diff/git.go:74–78  ·  view source on GitHub ↗

DiffSet separates the diffs a review may process from files excluded by the provider's built-in directory rules. The latter remain unavailable to a review, but callers such as Preview can account for them. excludedAt[i] is Excluded[i]'s index in the changeset order of Included and Excluded combined

Source from the content-addressed store, hash-verified

72// Excluded combined, so ForEachInOrder can walk the two slices as Git listed
73// them rather than every provider exclusion first.
74type DiffSet struct {
75 Included []model.Diff
76 Excluded []model.Diff
77 excludedAt []int
78}
79
80// ForEachInOrder visits Included and Excluded in the original changeset order.
81// providerExcluded is true for built-in directory exclusions. Files dropped by

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected