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

Re: Problems using perl's Git.pm module

From
Ddemerphq <demerphq@gmail.com>
Date
Dec 2, 2010, 18:41 UTC
Message-ID
<AANLkTimKKssBbtuLKCqG9WGbOe+-CH4pc5PDaNxCH_PS@mail.gmail.com>
In-Reply-To
<20101202181425.GG3962@burratino>
On 2 December 2010 19:14, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 15 quoted lines
> demerphq wrote:
>> On 2 December 2010 18:46, Junio C Hamano <gitster@pobox.com> wrote:
>> > Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>>>> Why are you using it? It's for internal use only.
>>>
>>> That is not a valid question nor answer, I am afraid.
>>
>> So you are saying that it is for more than internal use?
>
> I assume so.  I had guessed the same thing (that it is meant to be
> generally useful), based on the following:
>
>  - it is installed to be usable with a simple "use Git"
>   automatically
Well that is true. But im not sure that is a good reason.
>  - "perldoc Git" tells me that this module gives Perl scripts an easy
>   way to interface the Git version control system, not that it is an
>   implementation artifact

Any perl module, or script, or podfile installed in a place that perldoc knows about is available to perldoc.

>  - tools like "git svn" were not historically part of core git, and
>   usage by them was not exactly internal use.
Well, the counter  arguments are:
No back-compat layer for older gits. Tight binding to a particular git
- no availability of upgrades independent of upgrading git. No
availability or review of the module on the standard venues for doing
so for Perl modules. CPAN, CPANTESTERS, smoke reports, etc.
And well the line:

# Totally unstable API. $VERSION = '0.01';

STRONGLY suggests that the module should not be used by code outside the Git package itself.

Cheers, yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Jonathan NiederNext: Jonathan Nieder
Message 8 of 19 in “Problems using perl's Git.pm module”
  1. Josef WolfDec 2, 2010
  2. Ævar Arnfjörð BjarmasonDec 2, 2010
  3. Jonathan NiederDec 2, 2010
  4. Ævar Arnfjörð BjarmasonDec 2, 2010
  5. Junio C HamanoDec 2, 2010
  6. demerphqDec 2, 2010
  7. Jonathan NiederDec 2, 2010
  8. demerphqDec 2, 2010
  9. Git.pm: discourage casual useJonathan Nieder, Dec 2, 2010
  10. Junio C HamanoDec 2, 2010
  11. Jonathan NiederDec 2, 2010
  12. Josef WolfDec 3, 2010
  13. demerphqDec 3, 2010
  14. Junio C HamanoDec 2, 2010
  15. demerphqDec 2, 2010
  16. Josef WolfDec 3, 2010
  17. Jonathan NiederDec 3, 2010
  18. Junio C HamanoDec 2, 2010
  19. Josef WolfDec 3, 2010

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.