graft verify
Verify that the files in a branch directory match the Merkle tree root recorded in the DAG.
Usage
Behavior
- Resolve the branch’s tip commit
- Load the stored tree entries and Merkle root
- Walk the branch directory, hash every file with BLAKE3
- Build the Merkle tree from current files
- Compare computed root against stored root
- If the commit was unverified (
verified=0) and verification passes, flip toverified=1
Flags
| Flag | Alias | Default | Description |
|---|---|---|---|
--verbose | -v | false | Show per-file integrity details |
Examples
Verify Active Branch
Verify Specific Branch
Verify with File Details
Failed Verification
Failed Verification with Verbose
Diff Types
| Status | Meaning |
|---|---|
changed | File exists but content hash differs from stored |
missing | File expected by the DAG but not found on disk |
extra | File on disk not recorded in the DAG for this commit |
Exit Codes
| Code | Meaning |
|---|---|
0 | Integrity check passed |
1 | Verification failed or error occurred |