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

Function NewWorkspaceProvider

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

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

Calls

no outgoing calls