Introduction
A .rev file is a reverse index that Git
keeps beside a packfile. It maps the order of
the objects in the pack back to their positions in the
pack index.
Structure
The file is binary and big-endian. It starts with the 4 bytes RIDX, the
version number 1 and an identifier for the hash function (1 for SHA-1, 2 for SHA-256),
then a table of index positions sorted by where each object sits in the pack, then
checksums.
Not described
Known, not yet covered
- Reference: this page is a summary; the layout is not yet described in full on this site.
- Viewer: the site has no viewer for reverse indexes.
Links
Software
- Git – writes and reads reverse indexes
Reference
- gitformat-pack – includes the .rev format