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

Re: Git SCM API remote

From
KKKonstantin Khomoutov <kostix@bswap.ru>
Date
Dec 15, 2021, 15:52 UTC
Message-ID
<20211215155221.tzg55fxerpowj623@carbon>
In-Reply-To
<CA++hZeHEVN6JZMdtXMjG2bDqerJjrFjhjYOry_rnWDgjTbQ8aA@mail.gmail.com>
On Wed, Dec 15, 2021 at 01:57:42PM +0100, Ana Jovanovska wrote:
> I am developing the integration with Git SCM and I will need your help
> on this matter.
> This is API remote doc https://www.git-scm.com/docs/api-remote .
No, it is not.

Unfortunately, looks like your knowledge about Git itself is a bit lacking currently as you appear to not be aware of Git's terminology. I would say, reading a book on Git ([1] is good), and a couple of manuals on it, possibly starting with [2].

> Can I have more information on how to use it, do I need some additional
> library?

Git itself does not ship anything you could call a library, but it is comprised from a large number of individual commands (which are what you would call "command-line commands") which are broadly divided into two categories - for end users and for use by other commands; these groups are called "porcelain" and "plumbing". Call out to plumbing-layer commands is the typical way to automate Git.

If you need to somehow manipulate Git repositores - you did not say anything about what that "integration" has to be about, - without having Git installed, you may resort to 3rd-party libraries such as [3]. ISTR it also has wrapping libraries in several programming languages.

Also note that there exist libraries for various programming languages which wrap calls to plumbing-layer Git commands, so they sort of implement something in between a "pure library" which does not call out to Git and calling Git directly.

1. https://www.git-scm.com/book/en/v2
2. https://www.git-scm.com/docs/git
3. https://libgit2.org/
Previous: Ana JovanovskaNext: Ana Jovanovska
Message 2 of 4 in “Git SCM API remote”
  1. Ana JovanovskaDec 15, 2021
  2. Konstantin KhomoutovDec 15, 2021
  3. Ana JovanovskaJan 3, 2022
  4. Konstantin KhomoutovJan 4, 2022

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.