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

Function NewWorkspaceProvider

internal/diff/git.go:85–91  ·  view source on GitHub ↗

NewWorkspaceProvider creates a Provider for workspace mode (current uncommitted changes).

(repoDir string, runner *gitcmd.Runner)

Source from the content-addressed store, hash-verified

83
84// NewWorkspaceProvider creates a Provider for workspace mode (current uncommitted changes).
85func NewWorkspaceProvider(repoDir string, runner *gitcmd.Runner) *Provider {
86 return &Provider{
87 repoDir: repoDir,
88 mode: ModeWorkspace,
89 runner: runner,
90 }
91}
92
93// InputResolution carries this run's frozen, immutable commit endpoints, per the
94// run-manifest input-mode matrix. An empty field means "not applicable or not

Calls

no outgoing calls