From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AFD251F403 for ; Tue, 4 Oct 2022 19:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1664910760; bh=02YqQH/ywnaNThOrfEEkyUU+d4E/JAyC/h0tbJGRa6I=; h=From:To:Subject:Date:From; b=e0kibQQH3LyDRM5axkbjM6yZl1DHBvb5pEWUwRdk34abYENPA7FaUMnI4UfjWcIGP SM5T3rmw4z/2jY4O4cjRbAwUozsYjeK4aAH+kKRUESUSRR3Vf4RzExvl9KAPrBOjX0 5PmsqME1AMez+jenfddr3BkrWLIjOEccCGvWuifM= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/10] www_coderepo: git viewer w/ search planned Date: Tue, 4 Oct 2022 19:12:30 +0000 Message-Id: <20221004191240.1056304-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This is to eventually support M:N inbox:coderepo search via -extindex. For now, it's a JS-free and CSS-optional cgit-like UI, but perhaps more brutalist :> It's mainly for wiring /$INBOX/$OID/s/ into /$CODEREPO/$OID/s/, but Atom feeds and such will be supported. It'll work better with coderepos with a ".git" name suffix to avoid conflicts with the inbox name. So [coderepo "git"] becomes [coderepo "git.git"] in my config file. cgitrc usage should continue working, I think... It looks better out-of-the-box on w3m since cgit relies too much on CSS :> Example here: https://80x24.org/lore/git.git Eric Wong (10): tests: use test_httpd consistently cgit: use Perl 5.10-isms, optimize, and golf git: hoist out description git: move cloneurl + description reading here www_coderepo: an alternative to cgit www_coderepo: wire up /$CODEREPO/$OID/s/ endpoint git: allow ->local_nick to return undef www_coderepo: wire up snapshot support www_stream: use git->pub_urls for coderepo links www_coderepo: start a top nav bar in summary view MANIFEST | 2 + lib/PublicInbox/Cgit.pm | 33 ++--- lib/PublicInbox/Config.pm | 2 +- lib/PublicInbox/ExtSearch.pm | 2 +- lib/PublicInbox/Git.pm | 53 +++++++-- lib/PublicInbox/GitAsyncCat.pm | 66 ++++++++-- lib/PublicInbox/Inbox.pm | 23 +--- lib/PublicInbox/RepoSnapshot.pm | 95 +++++++++++++++ lib/PublicInbox/SolverGit.pm | 8 +- lib/PublicInbox/TestCommon.pm | 14 ++- lib/PublicInbox/ViewVCS.pm | 1 + lib/PublicInbox/WWW.pm | 12 +- lib/PublicInbox/WwwCoderepo.pm | 205 ++++++++++++++++++++++++++++++++ lib/PublicInbox/WwwStream.pm | 33 ++--- t/init.t | 2 +- t/lei-mirror.t | 10 +- t/psgi_attach.t | 13 +- t/solver_git.t | 70 ++++++++--- t/www_altid.t | 13 +- xt/solver.t | 18 +-- 20 files changed, 533 insertions(+), 142 deletions(-) create mode 100644 lib/PublicInbox/RepoSnapshot.pm create mode 100644 lib/PublicInbox/WwwCoderepo.pm