2023-11-16 09:55:31 -05:00
|
|
|
# wiggle
|
|
|
|
|
|
|
|
> A patch application tool resolving conflicts in patches that `patch` cannot handle.
|
|
|
|
> Note: Wiggle forcefully applies all changes, merging when conflicts arise, and reporting unresolvable issues.
|
|
|
|
> More information: <https://manned.org/wiggle>.
|
|
|
|
|
|
|
|
- Apply changes from the patch file to the original file:
|
|
|
|
|
|
|
|
`wiggle {{path/to/my_patch.patch}}`
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Apply changes to the output file:
|
2023-11-16 09:55:31 -05:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`wiggle {{path/to/my_patch.patch}} {{[-o|--output]}} {{path/to/output_file.txt}}`
|
2023-11-16 09:55:31 -05:00
|
|
|
|
|
|
|
- Take any changes in `file.rej` that could not have been applied and merge them into a file:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`wiggle {{[-r|--replace]}} {{path/to/file}} {{path/to/file.rej}}`
|
2023-11-16 09:55:31 -05:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Extract one branch of a patch or merge file:
|
2023-11-16 09:55:31 -05:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`wiggle {{[-x|--extract]}} {{path/to/my_patch.patch}}`
|
2023-11-16 09:55:31 -05:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Apply a patch and save the compared words to the output file:
|
2023-11-16 09:55:31 -05:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`wiggle {{[-w|--words]}} {{path/to/my_word_patch.patch}} {{[-o|--output]}} {{path/to/word_patched_code.c}}`
|
2023-11-16 09:55:31 -05:00
|
|
|
|
|
|
|
- Display help about the merge function:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`wiggle {{[-m|--merge]}} {{[-h|--help]}}`
|