}
sub git_config_dump {
- my ($class, $file) = @_;
+ my ($class, $file, $errfh) = @_;
return bless {}, $class unless -e $file;
my $cmd = [ qw(git config -z -l --includes), "--file=$file" ];
- my $fh = popen_rd($cmd);
+ my $fh = popen_rd($cmd, undef, { 2 => $errfh // 2 });
my $rv = config_fh_parse($fh, "\0", "\n");
- close $fh or die "failed to close (@$cmd) pipe: $?";
+ close $fh or die "@$cmd failed: \$?=$?\n";
bless $rv, $class;
}
$ibx->{$k} = $v if defined $v;
}
for my $k (qw(filter inboxdir newsgroup replyto httpbackendmax feedmax
- indexlevel indexsequentialshard)) {
+ indexlevel indexsequentialshard boost)) {
my $v = get_1($self, $pfx, $k) // next;
$ibx->{$k} = $v;
}
my $v = get_1($self, $pfx, $k) // next;
$es->{$k} = $v;
}
- for my $k (qw(altid coderepo hide url infourl)) {
+ for my $k (qw(coderepo hide url infourl)) {
my $v = $self->{"$pfx.$k"} // next;
$es->{$k} = _array($v);
}