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

Method Diff

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

Source from the content-addressed store, hash-verified

470}
471
472func (r *Repository) Diff(ctx context.Context, id string, w io.Writer) error {
473 envInfo, err := r.Info(ctx, id)
474 if err != nil {
475 return err
476 }
477
478 diffArgs := []string{
479 "diff",
480 }
481
482 revisionRange, err := r.revisionRange(ctx, envInfo)
483 if err != nil {
484 return err
485 }
486
487 diffArgs = append(diffArgs, revisionRange)
488
489 return RunInteractiveGitCommand(ctx, r.userRepoPath, w, diffArgs...)
490}
491
492func (r *Repository) Merge(ctx context.Context, id string, w io.Writer) error {
493 envInfo, err := r.Info(ctx, id)

Callers 2

TestRepositoryDiffFunction · 0.80
diff.goFile · 0.80

Calls 3

InfoMethod · 0.95
revisionRangeMethod · 0.95
RunInteractiveGitCommandFunction · 0.85

Tested by 1

TestRepositoryDiffFunction · 0.64