rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.64k stars 380 forks source link

Is there a way to clone a partial part of a git project? #992

Closed Thumuss closed 9 months ago

Thumuss commented 9 months ago

I know we can do a sparse checkout to clone just a folder or a file but I can't find it on the docs. Is there a way?

ehuss commented 9 months ago

Sparse checkouts are not supported. Since this is an upstream issue, closing as a duplicate of https://github.com/libgit2/libgit2/issues/2263.