Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

@agents-git-bot agents-git-bot bot commented Jan 2, 2026

Summary

This PR documents the new depth option for gitCheckout() that enables shallow cloning of Git repositories.

Changes Made

  • API Reference Update (sandbox/api/files.mdx):
    • Added example showing shallow clone with depth: 1 for large repositories
    • Improved parameter descriptions (default branch, targetDir format)
    • Added practical example using facebook/react repository

Context

This change syncs documentation with cloudflare/sandbox-sdk#326, which adds shallow clone support via depth option in gitCheckout(). Using depth: 1 clones only the latest commit, reducing clone time and disk usage for large repositories.

Note

The git-workflows.mdx guide already included the depth option examples and did not require updates.


🤖 Generated by automated documentation sync from cloudflare/sandbox-sdk#326

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/sandbox/ @whoiskatrin, @ghostwriternr, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

@agents-git-bot agents-git-bot bot force-pushed the sync-docs-pr-326 branch 2 times, most recently from ead09b7 to 8034e28 Compare January 5, 2026 16:40
- Add shallow clone example with depth: 1 for large repositories
- Improve parameter descriptions (default branch, targetDir format)
- Show practical example using facebook/react repository

Synced from cloudflare/sandbox-sdk PR #326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants