-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shallow clone support #229
Comments
Absolutely, have a go! You might want to see how core git does this, it's probably something in the request sent to the remote. Then take a look at |
i'm taking a look at this now. Seeing i've never written in c, i'm a bit out of the loop on how to use interop or even what I am meant to be looking for. what i've done to date:
some updates on how JGit have been looking at it over the years: |
nudge nudge I'm looking at libgit for a project I have on the drawing board, but it would need this feature. I do know C, but I don't know either the libgit codebase or the git codebase. Does anyone here have an intuition as to how much work adding this feature would be? |
I think discussing it over in a libgit2 issue would be great. We've been thinking about working on this as well, it would be great to pair up. -ed
|
I'm also interested in working on shallow copies. |
Appears the recent discussion is here : libgit2/libgit2#3058 |
This issue is now nearly 8 years old. Will this get implemented soon? In my use-case I just want to use |
Any progress on this issue? |
Is this on the horizon? |
any progress here guys? this ticket is 11 years old |
With this merged libgit2/libgit2#6396, then it should be feasable to add to libgit2sharp |
Legendary 🥇 |
wait 11 years |
🤷♂️ bump and +1 here. @bording with libgit2/libgit2#6396 merged - please can we make this a high priority? It will provide significant performance benefits for a range of use-cases |
https://github.com/libgit2/libgit2/releases/tag/v1.7.0 libgit2 has made a new release including the shallow clone feature |
@dougrathbone It's been a few years but as you now have 11 experience with this repository, would you reimplement your initial changes with shallow cloning now available in libgit2? |
Is this supported now or not? Not clear from here. Any code sample? Any documentation? |
libgit2sharp does not support shallow cloning yet. Anyone is invited to implement it in a pull request although I do not know how much time the maintainers take for this repository lately, it seems there was very little activity the last few months. |
+1 |
@hoerup No, that just adjusts the format of the internal struct so that the interop continues to work. For now, I've just hardcoded it to always be a full fetch, same as it's always been. There would need to be more work done to enable shallow clones. |
Shallow cloning would be amazing.., |
Hi there
I was hoping for support for
git clone --depth 1
so that we can support init'ing repos without all the history data.I'd be happy to have a go but am totally new to the project (as in, 5 mins new)
The text was updated successfully, but these errors were encountered: