Re: Git SCM API remote
- From
- Konstantin 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/