rattler-build debug create-patch#
Create a patch from changes in the work directory
Usage#
Options#
-
--directory (-d) <DIRECTORY>- Directory where we want to create the patch. Defaults to current directory if not specified
-
--name <NAME>- The name for the patch file to create
default:changes
-
--overwrite- Whether to overwrite the patch file if it already exists
default:false
-
--patch-dir <DIR>- Optional directory where the patch file should be written. Defaults to the recipe directory determined from
.source_info.jsonif not provided
-
--exclude <EXCLUDE>- Comma-separated list of file names (or glob patterns) that should be excluded from the diff
May be provided more than once.
-
--add <ADD>- Include new files matching these glob patterns (e.g., ".txt", "src//.rs")
May be provided more than once.
-
--include <INCLUDE>- Only include modified files matching these glob patterns (e.g., ".c", "src//.rs") If not specified, all modified files are included (subject to --exclude)
May be provided more than once.
-
--dry-run- Perform a dry-run: analyze changes and log the diff, but don't write the patch file
default:false
Description#
Create a patch from changes in the work directory.
Generates a unified diff between the original sources and your modifications. The patch file is written to the recipe directory so you can add it to the recipe's patches: list.