]> Sergey Matveev's repositories - public-inbox.git/commit
use popen_rd for bidirectional pipes
authorEric Wong <e@yhbt.net>
Sat, 11 Jan 2020 22:35:03 +0000 (22:35 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jan 2020 04:36:48 +0000 (04:36 +0000)
commitc5c709dcef1b5904467ff2aea3943f00a891dade
treee02f9d1e216c3beacc51d2ca43e5333c4dbd9f4f
parenta208d17ed99577faa8b52d46107fad5516b346b0
use popen_rd for bidirectional pipes

popen_rd accepts arbitrary redirects, so we can reuse its
code to setup the pipe end we want to read, saving each
caller a few lines of code compared to calling pipe+spawn.
lib/PublicInbox/Git.pm
lib/PublicInbox/Import.pm
lib/PublicInbox/V2Writable.pm
t/solver_git.t