From 32fa6be4222d9af593c22a7dc101d8d5e8835511 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2023 23:07:21 +0000 Subject: codesearch: initial cut w/ -cindex tool It seems relying on root commits is a reasonable way to deduplicate and handle repositories with common history. I initially wanted to shoehorn this into extindex, but decided a separate Xapian index layout capable of being EITHER external to handle many forks or internal (in $GIT_DIR/public-inbox-cindex) for small projects is the right way to go. Unlike most existing parts of public-inbox, this relies on absolute paths of $GIT_DIR stored in the Xapian DB and does not rely on the config file. We'll be relying on the config file to map absolute paths to public URL paths for WWW. --- MANIFEST | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MANIFEST') diff --git a/MANIFEST b/MANIFEST index bc652e21..40535233 100644 --- a/MANIFEST +++ b/MANIFEST @@ -161,6 +161,8 @@ lib/PublicInbox/AltId.pm lib/PublicInbox/AutoReap.pm lib/PublicInbox/Cgit.pm lib/PublicInbox/CmdIPC4.pm +lib/PublicInbox/CodeSearch.pm +lib/PublicInbox/CodeSearchIdx.pm lib/PublicInbox/CompressNoop.pm lib/PublicInbox/Config.pm lib/PublicInbox/ConfigIter.pm @@ -363,6 +365,7 @@ sa_config/README sa_config/root/etc/spamassassin/public-inbox.pre sa_config/user/.spamassassin/user_prefs script/lei +script/public-inbox-cindex script/public-inbox-clone script/public-inbox-compact script/public-inbox-convert @@ -402,6 +405,7 @@ t/altid.t t/altid_v2.t t/cgi.t t/check-www-inbox.perl +t/cindex.t t/clone-coderepo-puh1.sh t/clone-coderepo-puh2.sh t/clone-coderepo.psgi -- cgit v1.2.3-24-ge0c7