Skip to contentSkip to conversation

How do smart git helpers transport objects?

DISCUSSION Stanisław Drozd 1 participant 1 message Oct 13, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello,

I'm writing a remote helper and decided implement the fetch and push capabilities, but one thing still remains a mystery for me. Namely, is my helper supposed to instantiate and pin git objects in GIT_DIR upon fetch <sha> <ref>?

In general I'm trying to determine how exactly I need to proceed upon receiving this command and find out whether libgit2 will be able to help me with whatever that is.

I'm also contemplating hooking up to libgit2's transport API, but IIUC its operation isn't very well suited for the backend I'm trying to use behind the scenes (IPFS,https://ipfs.io/, long story short it's P2P and doesn't have a "server side" per se).

Thanks,
Stan

PS: If my libgit2 questions feel outside scope I'd gladly join a community more focused on libgit2; I'm already on #libgit2 on freenode, but there's only 11 people there ATM