Git internals

Git pack-index prefix lookup

Find object prefixes, exact pack offsets and recorded CRCs in one .idx file.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Check v2 table boundaries, sorted IDs and the fanout histogram. Resolve direct or 64-bit offsets, recompute the index checksum and return all prefix matches within the supplied index.

The prefix abcd matches two SHA-1 IDs. One uses the 64-bit offset table and records byte offset 4294967301.

Limits

One supplied v2 index, up to 8 MiB and 100000 objects; use a longer prefix if more than 20000 rows match. Hash mode is explicit; 4-digit or longer odd/even-nibble prefixes are supported. Pack checksum and CRCs are recorded only: no pack bytes or repository-wide uniqueness check. v1/MIDX/RIDX/pack payloads are excluded.