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

Re: [PATCH 7/7] Convert git-annotate to use Git.pm

From
RARyan Anderson <ryan@michonline.com>
Date
Jun 25, 2006, 09:27 UTC
Message-ID
<20060625092719.GH3154@h4x0r5.com>
In-Reply-To
<20060625015434.29906.23422.stgit@machine.or.cz>
On Sun, Jun 25, 2006 at 03:54:34AM +0200, Petr Baudis wrote:
Show 26 quoted lines
> -sub open_pipe {
> -	if ($^O eq '##INSERT_ACTIVESTATE_STRING_HERE##') {
> -		return open_pipe_activestate(@_);
> -	} else {
> -		return open_pipe_normal(@_);
> -	}
> -}
> -
> -sub open_pipe_activestate {
> -	tie *fh, "Git::ActiveStatePipe", @_;
> -	return *fh;
> -}
> -
> -sub open_pipe_normal {
> -	my (@execlist) = @_;
> -
> -	my $pid = open my $kid, "-|";
> -	defined $pid or die "Cannot fork: $!";
> -
> -	unless ($pid) {
> -		exec @execlist;
> -		die "Cannot exec @execlist: $!";
> -	}
> -
> -	return $kid;
> -}

I don't see that Git.pm provides the compatibility functionality we have stubbed out, here.

(It clearly has never been used, because there hasn't been a patch to set the actual ActiveState string there.. 'MSWin32', btw.)

I suspect that the other scripts, that have more users, will see regression complaints when the qx() calls get replaced by calls to open(my $fh, "-|"), indirectly, in Git.pm

-- 
Ryan Anderson
  sometimes Pug Majere
Previous: Petr BaudisNext: Petr Baudis
Message 8 of 11 in “Git.pm: Introduce ident() and ident_person() methods”
  1. 1/7 Git.pm: Introduce ident() and ident_person() methodsPetr Baudis, Jun 25, 2006
  2. 2/7 Git.pm: Try to support ActiveState output pipePetr Baudis, Jun 25, 2006
  3. 3/7 Git.pm: Swap hash_object() parametersPetr Baudis, Jun 25, 2006
  4. 4/7 Git.pm: Fix Git->repository("/somewhere/totally/elsewhere")Petr Baudis, Jun 25, 2006
  5. 5/7 Make it possible to set up libgit directly (instead of from the environment)Petr Baudis, Jun 25, 2006
  6. 6/7 Git.pm: Introduce fast get_object() methodPetr Baudis, Jun 25, 2006
  7. 7/7 Convert git-annotate to use Git.pmPetr Baudis, Jun 25, 2006
  8. Ryan AndersonJun 25, 2006
  9. Petr BaudisJun 25, 2006
  10. Petr BaudisJun 25, 2006
  11. Junio C HamanoJun 25, 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.