1

Is there a way to only read the history without the files in libgit2? e.g. something like git --filter=blob:none ?

KingOfCoders
  • 2,253
  • 2
  • 23
  • 34

1 Answers1

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