ItemValue
NamePARENT (spec document BIND PARENT)
TAG ID0x1D1L
Codec ID0x00001D10
Spec document0x00000000/codecs/0x00001D10/ (DECLARE target 1D10)
Section14 1110 (Meta), offset within section C = 1
KindMeta · class: lineage
TAG WORD0001 1101 0001 LLLL (000K KKKC CCCC LLLL)
Index descriptionThe content hash of the immediately preceding version (git parent). If absent, this is the first version; if several, it is a merge (git merge commit).
Hugo sidemeta/lineage/parent.md

Fields (spec document)

The order of FIELDs within the document is the order of Payload fields (Codec spec document).

OrderField (BIND)FIELDWidthAccepted form (CODEC)ENUM
1digest#2record07C0 SHA-256-DIGEST

Records the content hash of the immediately preceding version (git parent).

Layout

TAG WORD          0001 1101 0001 LLLL      Codec 0x1D1L
[Length extension TAG]
Payload           One SHA-256-DIGEST Value (16 WORD)
  • Codec: Meta 0x1D1L, lineage class
  • Payload: embedded Value (SHA-256-DIGEST)
  • Count: several allowed (merge)

Interpretation and validity

  • If absent, this is the first version; if several, it is a merge (git merge commit).
  • It enters the content hash, so the whole history becomes a hash chain.
  • A version-list document points at the preceding list document (PUBLICATION).
  • The digest format is embedded as a Value, leaving room to change the hash algorithm. Currently the content hash is SHA-256 only.

Example

  • 0x1D1E 0x0014 0x07CE 0x0012 <16 WORD> (Meta 20 WORD = TAG + Length extension + embedded Value 18 WORD)

Spec document source

The spec document 0x00000000/codecs/0x00001D10/latest.geul as read with geul show (hex in uppercase).

SPEC-VERSION 0x0001
DOC-ID 0x04260000000000001D1000000000
BODY
#1 DECLARE 0x1D10
#2 FIELD #1 record
#5 CODEC #2 0x07C0
#3 BIND #1 "PARENT"
#4 BIND #2 "digest"