git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How do smart git helpers transport objects?

From
SDStanisław Drozd <drozdziak1@gmail.com>
Date
Oct 13, 2018, 08:08 UTC
Message-ID
<79cad128-383f-9a9a-cb53-6089afa36081@gmail.com>
In-Reply-To
<100fc0a7-a7fd-e6ba-937e-f795b30b3f35@gmail.com>
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
   
Message 1 of 1 in “How do smart git helpers transport objects?”
  1. Stanisław DrozdOct 13, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.