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

Re: Possible to use git over custom ssh libraries?

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Mar 5, 2021, 21:53 UTC
Message-ID
<YEKoav/IOp4Mpe4H@camp.crustytoothpaste.net>
In-Reply-To
<CANXojcymWsK4g7s5rx0_OPu_XSf4ZiKUbYgQ-h38cvF5WYQs=g@mail.gmail.com>
On 2021-03-05 at 14:22:42, Stef Bon wrote:
Show 9 quoted lines
> Hi Bryan,
> 
> thanks for your reaction. Git itself can thus deal with a different
> ssh implementation, only I cannot use that for
> my fuse fs. I need I library which "talks" git.
> 
> What is libgit2 in this context? Is it a library which uses the git
> internals, or is git self written in libgit2?
> And can I use that to use custom ssh libraries and build a fuse fs with it?

libgit2 is an independent implementation of Git as a library. Git and libgit2 generally don't share code, although some code has been copied from one to the other. It supports SSH using libssh2, although you could probably patch it to use a different library.

That's the only general purpose C-compatible implementation of Git as a library that I'm aware of.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Stef Bon
Message 4 of 4 in “Possible to use git over custom ssh libraries?”
  1. Stef BonMar 5, 2021
  2. Bryan TurnerMar 5, 2021
  3. Stef BonMar 5, 2021
  4. brian m. carlsonMar 5, 2021

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.