| 470 | } |
| 471 | |
| 472 | func (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 | |
| 492 | func (r *Repository) Merge(ctx context.Context, id string, w io.Writer) error { |
| 493 | envInfo, err := r.Info(ctx, id) |