Reputation: 2282
Is there a way to only read the history without the files in libgit2? e.g. something like git --filter=blob:none ?
Upvotes: 2
Views: 483
Reputation: 1324637
I only see that option for git clone --filter=blob:none
, documented in Git 2.27, as I documented it in "What is the git clone --filter
option's syntax?".
But I don't see any equivalent feature in libgit2, only a git_blob_filter_options
, which is not used for cloning.
On a related topic, there is a PR pending for supporting sparse checkout.
So nothing yet regarding partial clone (for which there is an opened feature request (5564) as well).
Upvotes: 1