threads / discuss / 49557

How do smart git helpers transport objects?

Subject: How do smart git helpers transport objects?

## tl;dr

One message between Oct 13, 2018 and Oct 13, 2018.

replies: 0people: 1as markdown or json

Stanisław Drozd· Oct 13, 2018, 08:08 UTC · lore
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
   

← back to recent threads