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

Function NewWorkspaceProvider

internal/diff/git.go:121–127  ·  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

119
120// NewWorkspaceProvider creates a Provider for workspace mode (current uncommitted changes).
121func NewWorkspaceProvider(repoDir string, runner *gitcmd.Runner) *Provider {
122 return &Provider{
123 repoDir: repoDir,
124 mode: ModeWorkspace,
125 runner: runner,
126 }
127}
128
129// InputResolution carries this run's frozen, immutable commit endpoints, per the
130// run-manifest input-mode matrix. An empty field means "not applicable or not

Calls

no outgoing calls