No description
This repository has been archived on 2026-04-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
JMARyA a0fb7a6062
Some checks failed
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build/1 Pipeline failed
deprecate in favour of jsaw
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 22:48:59 +02:00
.woodpecker update 2025-06-28 01:46:14 +02:00
src deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
.gitignore init 2023-11-04 08:19:49 +01:00
Cargo.lock chore(deps): update rust crate clap to v4.5.56 2026-01-29 16:46:44 +00:00
Cargo.toml update 2025-06-28 01:46:14 +02:00
flake.lock chore: nix flake 2025-11-30 22:16:50 +01:00
flake.nix chore: nix flake 2025-11-30 22:16:50 +01:00
PKGBUILD update 2025-06-28 01:46:14 +02:00
README.md deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
renovate.json Add renovate.json 2025-06-21 21:37:14 +00:00

mddiff

Deprecated. mddiff is no longer maintained. All functionality has been absorbed into jsaw.

Migration:

# mddiff a.md b.md
jsaw diff a.md b.md --patch

# mddiff --add a.md b.md
jsaw diff a.md b.md --patch --add

# mddiff --exclude /status a.md b.md
jsaw diff a.md b.md --patch --exclude /status

# mddiff --test /version 1.0 a.md b.md
jsaw diff a.md b.md --patch --test /version 1.0

# Multiple test operations (was single in mddiff, now repeatable)
jsaw diff a.md b.md --patch --test /version 1.0 --test /status active

mddiff is a tool for comparing the frontmatter of two markdown files and generating a JSON patch file.

Usage

Usage: mddiff [OPTIONS] <file> <file2>

Arguments:
  <file>   First File
  <file2>  Second File

Options:
  -p, --pretty              Output formatted json patch
  -a, --add                 Only output add operations
  -m, --modify              Only output modify operations
  -d, --delete              Only output delete operations
  -t, --test <key> <val>    Add test case to json patch
  -x, --exclude <JSONPATH>  Exclude json path from diff
  -k, --keys <JSONPATH>     Only include the specified json paths in diff