Reputation: 30235
How can I do the equivalent of git fetch origin <CommitHash>
with LibGit2Sharp?
It seems the only relevant option for git_remote_fetch are the refspecs so I imagine I need some trickery there, but I don't see how from the documentation.
The idea is to fetch only the data required and not everything from the remote since the repo is a shallow clone.
Upvotes: 0
Views: 176