Skip to main content

graft verify

Verify that the files in a branch directory match the Merkle tree root recorded in the DAG.

Usage

If no branch is specified, the active branch is verified.

Behavior

  1. Resolve the branch’s tip commit
  2. Load the stored tree entries and Merkle root
  3. Walk the branch directory, hash every file with BLAKE3
  4. Build the Merkle tree from current files
  5. Compare computed root against stored root
  6. If the commit was unverified (verified=0) and verification passes, flip to verified=1

Flags

Examples

Verify Active Branch

Verify Specific Branch

Verify with File Details

Failed Verification

Failed Verification with Verbose

Diff Types

Exit Codes