Is there a way to only read the history without the files in libgit2? e.g. something like git --filter=blob:none ?
Asked
Active
Viewed 348 times
1 Answers
1
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).

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
Thank you for that answer, then I'd execute 'git' for now and capture the results. – KingOfCoders Jun 07 '21 at 03:27