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

Function NewWorkspaceProvider

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

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

Calls

no outgoing calls