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

Re: [PATCH] [RFC] Introduce Git.pm

From
Junio C Hamano <junkio@cox.net>
Date
Jun 22, 2006, 09:01 UTC
Message-ID
<7vfyhxtvgl.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060622003546.17760.23089.stgit@machine.or.cz>
Petr Baudis <pasky@suse.cz> writes:
> This patch introduces a very basic and barebone Git.pm module
> with a sketch of how the generic interface would look like;
In addition to my previous comments...
Show 12 quoted lines
> +  my $version = Git::generic_oneval('version');
> +  my $lastrev = $repo->generic_oneval('rev-list', '--all');
> +...
> +=item generic_oneline ( COMMAND [, ARGUMENTS... ] )
> +...
> +sub generic_oneline {
> +	my $fh = generic(@_);
> +	my $line = <$fh>;
> +	close $fh;
> +	chomp $line;
> +	return $line;
> +}

Let's have a cleaned up version of Git.pm, Makefile changes and changes to git-fmt-merge-msg.perl that shows how to use the module. Being in-tree would help people to view, use and comment on it.

Previous: Jakub Narebski
Message 7 of 7 in “[RFC] Introduce Git.pm”
  1. [RFC] Introduce Git.pmPetr Baudis, Jun 22, 2006
  2. Junio C HamanoJun 22, 2006
  3. Alex RiesenJun 22, 2006
  4. Eric WongJun 22, 2006
  5. Petr BaudisJun 22, 2006
  6. Jakub NarebskiJun 22, 2006
  7. Junio C HamanoJun 22, 2006

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.