Title
This commit is contained in:
parent
001a27c694
commit
fbf3d7640a
8 changed files with 110 additions and 38 deletions
24
FORMATS.md
Normal file
24
FORMATS.md
Normal 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)
|
||||
Loading…
Reference in a new issue