How do smart git helpers transport objects?

2018-10-13 Thread Stanisław Drozd

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  `?

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

  





git-remote-helper list command question

2018-10-02 Thread Stanisław Drozd

I'm trying to write a fast-import-based git remote helper, but I'm not sure 
what the output of the `list` command should look like. How can I find an 
example of the format in action?

Thanks,
Stan