-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Description
JGit currently cannot perform sparse checkout, a feature in native Git that allows checking out only selected subdirectories of a repository. (https://git-scm.com/docs/git-sparse-checkout)
Although JGit’s checkout().addPath() enables partial file checkouts once, it doesn’t persist sparse patterns or maintain the skip-worktree state in the index.
As a result, every checkout re-populates the full working tree, which defeats the purpose of selective checkouts.
Motivation
This limitation makes it difficult to work efficiently with large repositories, where only specific components are needed.
Alternatives considered
No response
Additional context
No response
chadeLin
Metadata
Metadata
Assignees
Labels
No labels