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

Re: Git SCM API remote

From
AJAna Jovanovska <ajovanovska@sumologic.com>
Date
Jan 3, 2022, 14:51 UTC
Message-ID
<CA++hZeELoG1yMdu4pGpRx+2bBF63yNgOwV-UoB5=CH3pAg9jNA@mail.gmail.com>
In-Reply-To
<CA++hZeFiFAuCD=C-2xJJt3yd5guyJrssjtpAmAqYXkMQuRtfpw@mail.gmail.com>
Hello,

The libgit2, more specifically pygit2 helped me in creating repositories, branches and getting a list of branches locally. But with the integration (in Python), would like to connect to git remote server and to be able to do some of the git commands (https://www.pygit2.org/index.html) as mentioned. I looked into Remotes - RemoteCallbacks - credentials(url, username_from_url, allowed_types) (https://www.pygit2.org/remotes.html#pygit2.RemoteCallbacks.credentials).

Can we have support on this matter - how can we do it? Also if you are available for a call, so to better understand, it will be great. Thank you in advance.

Kind regards, Ana

On Mon, Jan 3, 2022 at 3:45 PM Ana Jovanovska <ajovanovska@sumologic.com> wrote:
Show 67 quoted lines
>
> Hello,
>
> The libgit2, more specifically pygit2 helped me in creating repositories, branches and getting a list of branches locally.
> But with the integration (in Python), would like to connect to git remote server and to be able to do some of the git commands (https://www.pygit2.org/index.html) as mentioned.
> I looked into Remotes - RemoteCallbacks - credentials(url, username_from_url, allowed_types) (https://www.pygit2.org/remotes.html#pygit2.RemoteCallbacks.credentials).
>
> Can we have support on this matter - how can we do it? Also if you are available for a call, so to better understand, it will be great. Thank you in advance.
>
> Kind regards,
> Ana
>
>
> On Wed, Dec 15, 2021 at 4:52 PM Konstantin Khomoutov <kostix@bswap.ru> wrote:
>>
>> 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/
>>
>
>
> --
>
> Ana Jovanovska
>
> Software Engineer, Engineering
>
> M (389) 75 300-828
>
>
>
>
>
>
>
-- 
Ana Jovanovska

Software Engineer, Engineering

M (389) 75 300-828
Previous: Konstantin KhomoutovNext: Konstantin Khomoutov
Message 3 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.