syncweaver patch create
Generate or refresh a canonical patch file that captures the diff between the vendored source snapshot and the current host-modified files.
Usage
Usage: syncweaver patch create [OPTIONS]
Create or update a canonical patch file for a tracked source path.
Options:
--path PATH Tracked source path in the host repository, e.g.
code/package1. [required]
--repo, --repo-url TEXT Repository URL as it appears in .syncweaver-
lock.json. [required]
--lockfile PATH Path to .syncweaver-lock.json in the host
repository. [default: .syncweaver-lock.json]
--patch-dir PATH Optional directory for the generated patch file.
-h, --help Show this message and exit.
Examples
# Create a patch for a tracked path
syncweaver patch create --path code/mypackage
# Write the patch to a custom location
syncweaver patch create --path code/mypackage --output patches/mypackage.patch