Skip to content

Add diff output format (-o diff)#2

Merged
leonhandreke merged 2 commits into
mainfrom
leonhandreke/diff
Mar 31, 2026
Merged

Add diff output format (-o diff)#2
leonhandreke merged 2 commits into
mainfrom
leonhandreke/diff

Conversation

@leonhandreke
Copy link
Copy Markdown
Collaborator

@leonhandreke leonhandreke commented Mar 31, 2026

Summary

  • Adds a diff output format (-o diff) that outputs standard unified diff, one hunk per entity, one line per changed statement formatted as prop: value [origin: ..., dataset: ...]
  • Control characters in values are escaped as unicode sequences
  • README section with delta example and screenshot

Install delta (brew install git-delta) to get syntax-highlighted output:

ftm-stmt diff -o diff $(zavod archive url statements.pack --latest datasets/**/$DATASET.yml) \
              data/datasets/$DATASET/statements.pack | delta

delta diff output

🤖 Generated with Claude Code

leonhandreke and others added 2 commits March 31, 2026 15:35
Outputs in unified diff format: one hunk per entity (with entity ID and
schema in the context slot), one line per changed statement formatted as
`prop: value [origin: ..., dataset: ...]`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… diff output

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@leonhandreke leonhandreke merged commit 4dd31d3 into main Mar 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant