diff options
author | Eric Wong <e@80x24.org> | 2023-12-05 09:46:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-12-05 22:05:11 +0000 |
commit | 0ab999b988c62b701bde26a8bad2b75da0a7ac43 (patch) | |
tree | 7547f0b9b38b7a4427ee3cf757064d01ee5de325 /t | |
parent | 62d48e5737e08d495452b7cfaea96d11686c5f8a (diff) | |
download | public-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.t | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |