MCPcopy
hub / github.com/dagger/container-use / Apply

Method Apply

repository/repository.go:501–508  ·  view source on GitHub ↗
(ctx context.Context, id string, w io.Writer)

Source from the content-addressed store, hash-verified

499}
500
501func (r *Repository) Apply(ctx context.Context, id string, w io.Writer) error {
502 envInfo, err := r.Info(ctx, id)
503 if err != nil {
504 return err
505 }
506
507 return RunInteractiveGitCommand(ctx, r.userRepoPath, w, "merge", "--autostash", "--squash", "--", "container-use/"+envInfo.ID)
508}

Callers 4

TestRepositoryApplyFunction · 0.80
apply.goFile · 0.80

Calls 2

InfoMethod · 0.95
RunInteractiveGitCommandFunction · 0.85

Tested by 3

TestRepositoryApplyFunction · 0.64