Repository navigation
Add sparse checkout worktree creation - #1131
Merged
Merged
Conversation
colinchambachan
marked this pull request as ready for review
April 26, 2026 18:11
colinchambachan
force-pushed
the
feat-sparse-checkout
branch
2 times, most recently
from
April 29, 2026 12:42
334a5af to
bd06404
Compare
Jinwoo-H
force-pushed
the
feat-sparse-checkout
branch
from
April 30, 2026 07:27
bd06404 to
cf53f05
Compare
- Use Set-based comparison for sparse preset matching (order-independent) - Replace JSON.stringify with arraysShallowEqual for worktree comparison - Improve detectSparseCheckout to use sparse-checkout list (per-worktree) - Surface cleanup failure context in addSparseWorktree error message - Move sparse checkout UI to bottom of advanced options - Remove unused src/shared/sparse-paths.ts (dead code from rebase) - Fix build-relay.mjs ROOT path after scripts/ → config/scripts/ move Co-authored-by: Orca <help@stably.ai>
This was referenced Apr 30, 2026
mralexsaavedra
pushed a commit
to mralexsaavedra/orca
that referenced
this pull request
May 2, 2026
Co-authored-by: Orca <help@stably.ai> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
7 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <help@stably.ai> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sparse Checkout Worktree Creation
Summary
Closes #254
User-Visible Behavior
Users can enable sparse checkout while creating a local worktree, enter repo-relative directories, and optionally save those directories as a per-repo preset. Presets are reusable in the same repo and can also be managed from that repo's Settings section.
Git cone-mode semantics apply: selected directories are included, unrelated directories are pruned, and Git may keep root-level files such as lockfiles or project config files.
Sparse checkout is intentionally limited to local repositories in this PR. Remote/SSH sparse creation is rejected with a clear error.
Screenshots / Recording
Screen.Recording.2026-04-26.at.2.04.48.PM.mov
EDIT: UI updated based on maintainer feedback
Tests
pnpm run lintsrc/renderer/src/components/diff-comments/useDiffCommentDecorator.tsx.pnpm run typecheckpnpm test257files passed.2848tests passed,7skipped.pnpm buildManual Testing Notes
AI Code Review Summary
The implementation keeps sparse checkout behind the local worktree creation path and preserves the default full-checkout path when sparse mode is off. Sparse directories are normalized and de-duplicated before use, and sparse metadata is persisted on worktree metadata so the renderer can explain sparse state later. Presets are keyed by repo ID and are not shared across repositories.
Cross-platform compatibility:
Security audit:
..) before reaching Git.Platform Notes
Manual verification so far was on macOS. The feature relies on Git sparse-checkout behavior and should work on Linux/Windows for local repositories, with path input normalized before persistence/use.