about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-05 09:46:23 +0000
committerEric Wong <e@80x24.org>2023-12-05 22:05:11 +0000
commit0ab999b988c62b701bde26a8bad2b75da0a7ac43 (patch)
tree7547f0b9b38b7a4427ee3cf757064d01ee5de325 /t
parent62d48e5737e08d495452b7cfaea96d11686c5f8a (diff)
downloadpublic-inbox-0ab999b988c62b701bde26a8bad2b75da0a7ac43.tar.gz
This future proofs the index against git auto-abbreviation
needing more characters as the repo grows.  It'll be useful for
joining against inboxes using dfpre.

As with emails, we'll continue indexing abbreviated blob OIDs
down to 7 hex characters so a SHA-1 git repo will have all
abbreviations of the OID from 7-39 hex characters in addition
to the 40 character unabbreviated form.
Diffstat (limited to 't')
-rw-r--r--t/cindex.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/cindex.t b/t/cindex.t
index 0193cf18..716e5984 100644
--- a/t/cindex.t
+++ b/t/cindex.t
@@ -288,6 +288,9 @@ EOM
                 ++$nr;
         }, '.');
         is $nr, 1, 'iterated through cindices';
+        my $oid = 'dba13ed2ddf783ee8118c6a581dbf75305f816a3';
+        my $mset = $csrch->mset("dfpost:$oid");
+        is $mset->size, 1, 'got result from full OID search';
 }
 
 done_testing;