patch command for MoonX.
moonx cli/patch@0.2.2 [OPTION]... [ORIGINALFILE [PATCHFILE]]| Option | Description |
|---|---|
| -p, --strip=N | remove N leading file-name components |
| -i, --input=FILE | read the patch from FILE instead of stdin |
| -o, --output=- | write patched files to stdout |
| -r, --reject-file=FILE | write rejected hunks to a new FILE; - discards |
| -d, --directory=DIR | resolve target paths relative to DIR |
| -R, --reverse | apply additions as removals and vice versa |
| --dry-run | check without writing or deleting files |
| -s, --quiet | suppress routine file messages |
| -u, --unified | require unified input |
| -c, --context | require context input |
| -t, --batch | select a detected reverse without prompting |
| -F, --fuzz=N | ignore up to N outer context lines (default 2) |
| --no-backup-if-mismatch | accept the no-backup strict profile |
| --help / --version | Show help / package version. |
moonx cli/patch@0.2.2 --dry-run -i change.diff
moonx cli/patch@0.2.2 -o - -i change.diff original.txt