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

Method Merge

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

Source from the content-addressed store, hash-verified

490}
491
492func (r *Repository) Merge(ctx context.Context, id string, w io.Writer) error {
493 envInfo, err := r.Info(ctx, id)
494 if err != nil {
495 return err
496 }
497
498 return RunInteractiveGitCommand(ctx, r.userRepoPath, w, "merge", "--no-ff", "--autostash", "-m", "Merge environment "+envInfo.ID, "--", "container-use/"+envInfo.ID)
499}
500
501func (r *Repository) Apply(ctx context.Context, id string, w io.Writer) error {
502 envInfo, err := r.Info(ctx, id)

Callers 5

TestRepositoryMergeFunction · 0.80
merge.goFile · 0.80

Calls 2

InfoMethod · 0.95
RunInteractiveGitCommandFunction · 0.85

Tested by 4

TestRepositoryMergeFunction · 0.64