Fetch single commit with LibGit2[Sharp]

61 Views Asked by At

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.

0

There are 0 best solutions below