This commit is contained in:
Pascal Engélibert 2026-07-27 21:35:40 +02:00
commit fbf3d7640a
8 changed files with 110 additions and 38 deletions

24
FORMATS.md Normal file
View file

@ -0,0 +1,24 @@
# Internal storage formats
This file describes the internal storage formats used for persistent data.
## Repository metadata
`meta.bin`
File structure:
* Version (1 byte): `0x00`
* Time (8 bytes, big endian)
* Title length (4 bytes, big endian) (may be zero)
* Title
* Repository URL length (4 bytes, big endian)
* Repository URL
* Commit hash length (4 bytes, big endian)
* Commit hash
* Content
Content is a concatenation of entries. Entry structure:
* File path length (4 bytes, big endian)
* File path
* Hash (44 bytes)