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

Re: Dumb idea on git library for script languages

From
GSGovind Salinas <govind@sophiasuchtig.com>
Date
Apr 29, 2008, 04:25 UTC
Message-ID
<5d46db230804282125g41be08a1v1d41155fe2305dac@mail.gmail.com>
In-Reply-To
<1209366216.17090.4.camel@prosumer>
On Mon, Apr 28, 2008 at 2:03 AM, tsgates <tsgatesv@gmail.com> wrote:
Show 8 quoted lines
> Please comment on my naive idea.
>
>  When I try to use git in python, there are no fancy ways not to fork any
>  processes.  (except not active git library) I know it is design policy
>  of git, one job for one process.
>
>  Anyhow, I need to call git in python and perl, so I try to think.
>

You may be interested in Pyrite, which has a Repo class that you may find helpful. It is a work in progress, so there are probably bugs, but I would be interested in fixing them. You can find it here

http://gitorious.org/projects/pyrite

Eventually, I plan to use libgit (or libgit-thin depending on what is appropriate) instead of subprocesses, but that is in the future.

-Govind
Previous: Eric Hanchrow
Message 5 of 5 in “Dumb idea on git library for script languages”
  1. tsgatesApr 28, 2008
  2. Jakub NarebskiApr 28, 2008
  3. Johannes SchindelinApr 28, 2008
  4. Eric HanchrowApr 29, 2008
  5. Govind SalinasApr 29, 2008

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.