From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E998A1F406 for ; Thu, 30 Nov 2023 21:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1701380362; bh=vw683fMrasbgKDb2ok2dGKJGbu7HPNoK9HwNB86K2yk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=IPEH0/VTOZIns7mvHkFYnhIr2e6ZR4W8N3CpyRl7lGyroKQGYmw+7ag5Eln2UG73q OKKwIGpavXTJ78LvPelwHBrRa9wewUT+bGb4dDmNbVZ1VNkPWcsm6FX1aQwf+0zaC4 a+9B8UXjKaXE1yWLjB9a/HnEu0kba3KnUZ6R4FCc= Date: Thu, 30 Nov 2023 21:36:40 +0000 From: Eric Wong To: meta@public-inbox.org Subject: Re: [PATCH 06/15] cindex: store extensions.objectFormat with repo data Message-ID: <20231130213641.M35664@dcvr> References: <20231130114109.2577708-1-e@80x24.org> <20231130114109.2577708-7-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231130114109.2577708-7-e@80x24.org> List-Id: Eric Wong wrote: > +++ b/lib/PublicInbox/CodeSearch.pm > @@ -242,15 +247,21 @@ sub paths2roots { > \%ret; > } > > +sub load_ct { # retry_reopen cb > + my ($self, $git_dir) = @_; > + my @ids = docids_of_git_dir $self, $git_dir or return; > + for (@ids) { > + my $doc = $self->get_doc($_) // next; > + return int_val($doc, CT); > + } > +} Ugh, this should've been introduced in 15/15 but I decided to reorder the series a bit while barely awake :x