patch command for MoonX.
moonx cli/patch --dry-run -p1 -i changes.patch
moonx cli/patch -p1 -i changes.patch --output=- > patched.txt| Option | Description |
|---|---|
| -p VALUE, --strip VALUE | remove N leading file-name components |
| -i VALUE, --input VALUE | read the patch from FILE instead of stdin |
| -o VALUE, --output VALUE | write patched files to stdout |
| -r VALUE, --reject-file VALUE | write rejected hunks to a new FILE; - discards |
| -R, --reverse | apply additions as removals and vice versa |
| --dry-run | check without writing or deleting files |
| -F VALUE, --fuzz VALUE | Ignore up to this many outer context lines. Default: 2. |
| --help | Show help. |
| --version | Show the version. |