sub usage { print STDERR "Usage: $usage\n"; exit 1 }
my $version = undef;
my $indexlevel = undef;
+my $skip;
my %opts = ( 'V|version=i' => \$version,
'L|indexlevel=s' => \$indexlevel,
+ 'S|skip=i' => \$skip,
);
GetOptions(%opts) or usage();
my $name = shift @ARGV or usage();
$version = 1 unless defined $version;
+if ($version == 1 && defined $skip) {
+ die "--skip is only supported for -V2 repos\n";
+}
+
if ($version >= 2) {
require PublicInbox::V2Writable;
require PublicInbox::Inbox;
-primary_address => $address[0],
};
$ibx = PublicInbox::Inbox->new($ibx);
- PublicInbox::V2Writable->new($ibx, 1)->init_inbox(0);
+ PublicInbox::V2Writable->new($ibx, 1)->init_inbox(0, $skip);
} elsif ($version == 1) {
x(qw(git init -q --bare), $mainrepo);