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

Re: [PATCH 2/4] Git.pm: Allow pipes to be closed prior to calling command_close_bidi_pipe

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 7, 2013, 00:14 UTC
Message-ID
<7vip659e08.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130206230406.GK27507@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 19 quoted lines
> On Wed, Feb 06, 2013 at 09:47:04PM +0100, Michal Nazarewicz wrote:
>
>> From: Michal Nazarewicz <mina86@mina86.com>
>> 
>> The command_close_bidi_pipe() function will insist on closing both
>> input and output pipes returned by command_bidi_pipe().  With this
>> change it is possible to close one of the pipes in advance and
>> pass undef as an argument.
>> 
>> This allows for something like:
>> 
>>   my ($pid, $in, $out, $ctx) = command_bidi_pipe(...);
>>   print $out "write data";
>>   close $out;
>>   # ... do stuff with $in
>>   command_close_bidi_pipe($pid, $in, undef, $ctx);
>
> Should this part go into the documentation for command_close_bidi_pipe
> in Git.pm?
Yeah, it probably should.
Previous: Jeff KingNext: Michal Nazarewicz
Message 5 of 11 in “Make git-send-email git-credential”
  1. 0/4 Make git-send-email git-credentialMichal Nazarewicz, Feb 6, 2013
  2. 1/4 Git.pm: Allow command_close_bidi_pipe() to be called as methodMichal Nazarewicz, Feb 6, 2013
  3. 2/4 Git.pm: Allow pipes to be closed prior to calling command_close_bidi_pipeMichal Nazarewicz, Feb 6, 2013
  4. Jeff KingFeb 6, 2013
  5. Junio C HamanoFeb 7, 2013
  6. 3/4 Git.pm: Add interface for git credential command.Michal Nazarewicz, Feb 6, 2013
  7. Jeff KingFeb 6, 2013
  8. Matthieu MoyFeb 7, 2013
  9. Matthieu MoyFeb 7, 2013
  10. 4/4 git-send-email: Use git credential to obtain password.Michal Nazarewicz, Feb 6, 2013
  11. Jeff KingFeb 6, 2013

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.