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

Method runGit

internal/diff/git.go:605–613  ·  view source on GitHub ↗
(ctx context.Context, args ...string)

Source from the content-addressed store, hash-verified

603}
604
605func (p *Provider) runGit(ctx context.Context, args ...string) (string, error) {
606 if p.runner != nil {
607 return p.runner.Run(ctx, p.repoDir, args...)
608 }
609 cmd := exec.CommandContext(ctx, "git", args...)
610 cmd.Dir = p.repoDir
611 out, err := cmd.CombinedOutput()
612 return string(out), err
613}

Callers 7

GetDiffMethod · 0.95
computeMergeBaseMethod · 0.95
RemoteIdentityMethod · 0.95
resolveCommitMethod · 0.95
commitParentsMethod · 0.95
workspaceTrackedDiffMethod · 0.95
untrackedFilesListMethod · 0.95

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected