Skip to content

Question: how to checkout remote repository? #358

Answered by Byron
demurgos asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your interest. I think doing that is possible, even though I have not done that before.

Here is the rough steps that I anticipate.

  • start cloning a pack from the remote, but declare it as shallow with a depth of one to receive only a single commit along with all objects associated with it.
    • possibly use an object filter to not download blobs
  • once the pack is written to disk and the index is generated, you can use the git-odb crate to access the objects within, which includes breadth-first tree traversal in the git-traverse crate.

I hope that helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #356 on March 16, 2022 23:39.