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

Re: Git.pm

From
NKnadim khemir <nadim@khemir.net>
Date
Nov 23, 2008, 20:09 UTC
Message-ID
<200811232109.01436.nadim@khemir.net>
In-Reply-To
<m363mhlw92.fsf@localhost.localdomain>
On Friday 21 November 2008 03.56.51 Jakub Narebski wrote:
Show 16 quoted lines
> Actually there are one and a half of Perl interfaces to Git: Git.pm
> created by Pasky (who, as far as I understand is not a Perl hacker)
> which is in git.git repository, and Git::Repo and friends created by
> Lea Wiemann during her work on "gitweb caching" project at Google
> Summer of Code 2008 (you can find her repository at git wiki page
> http://git.or.cz/gitwiki/SoC2008Projects).
>
>
> If I remember history of Git.pm correctly, it was first created as a
> way to collect together and uniquify various versions of safe_pipe and
> safe_qx which were used by various Perl scripts in git; something like
> Perl version of git-sh-setup.sh for shell scripts... At first it even
> used XS in parts, but the build system was deemed too unportable (it
> depended on -fPIC). One of design decisions was to use Error.pm for
> throwing errors; I'm not a Perl hacker, so I cannot say if this was a
> good decision, and if implementation of this part is good.

Using Error.pm is not a bad decision even if more simple mechanisms do the job.

Show 11 quoted lines
> Lea Wiemann work on Git::Repo and friends was created as object
> oriented interface. It was build from ground up instead of reusing
> Git.pm to be not encumbered by Git.pm cruft... unfortunately it means
> also abandoning all the work that went in Git.pm to make it portable
> (read: make it work with crippled ActiveState Perl). You can find
> discussion on the design of Git::Repo and decision of it being clean
> state implementation at link given by Pasky.
>
> P.S. I have "[RFC] Git Perl bindings, and OO interface" half-written
> (well, more like a third), a bit stalled. I'll try to find time to
> finish it and send it to git mailing list.

That would be very usefull. the relevant information should be integrated in the module itself.

Thank you for your input on the history of Git.pm.
Cheers, Nadim
Previous: Jakub Narebski
Message 7 of 7 in “Git.pm”
  1. nadim khemirNov 19, 2008
  2. Petr BaudisNov 20, 2008
  3. Petr BaudisNov 20, 2008
  4. nadim khemirNov 23, 2008
  5. nadim khemirDec 7, 2008
  6. Jakub NarebskiNov 21, 2008
  7. nadim khemirNov 23, 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.