Is it possible to do git clone --depth=1 <repository>
with libgit2?
#6526
-
Is it possible to do I found this open issue about sparse checkouts but I am not sure that it's the same. It also links to open PR that has not yet been merged although @ethomson recently replied that he will look into merging it. Someone in the PR comment mentioned that this option is available via a flag but searching on website I didn't find which flag that was. I hope there is some way to do a Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The issue you link to (#3508) is for shallow support, not sparse checkouts. Shallow refers to the amount of history, sparse checkout refers to how much of the working folder is checked out. To use #6396 you'll need to build libgit2 from a fork, until it is merged into libgit2. |
Beta Was this translation helpful? Give feedback.
The issue you link to (#3508) is for shallow support, not sparse checkouts. Shallow refers to the amount of history, sparse checkout refers to how much of the working folder is checked out.
To use #6396 you'll need to build libgit2 from a fork, until it is merged into libgit2.