ItemValue
NameREPLACES (spec document BIND REPLACES)
TAG ID0x1D7L
Codec ID0x00001D70
Spec document0x00000000/codecs/0x00001D70/ (DECLARE target 1D70)
Section14 1110 (Meta), offset within section C = 7
KindMeta · class: lineage
TAG WORD0001 1101 0111 LLLL (000K KKKC CCCC LLLL)
Index descriptionThe content hash of the version that was rewritten (git amend, rebase). The original version is not deleted.
Hugo sidemeta/lineage/replaces.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 version that was rewritten (git amend, rebase).

Layout

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

Interpretation and validity

  • The original version is not deleted (the old law is preserved).
  • The digest format is embedded as a Value, leaving room to change the hash algorithm. Currently the content hash is SHA-256 only.

Spec document source

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

SPEC-VERSION 0x0001
DOC-ID 0x04260000000000001D7000000000
BODY
#1 DECLARE 0x1D70
#2 FIELD #1 record
#5 CODEC #2 0x07C0
#3 BIND #1 "REPLACES"
#4 BIND #2 "digest"