Source Package: python-unipatch (1.0.0-2.1)
Apply unified diffs in memory, compatible with GNU patch
Apply unified diffs in memory, compatible with GNU patch. unipatch follows the behaviour of the GNU ``patch`` commandline utility, verified by differentially testing against it with randomized inputs: * Hunks may apply at an *offset* from the line numbers stated in their ``@@`` headers, matching by content, with a found offset carrying forward to later hunks. * A *fuzz factor* ignores up to two mismatching context lines at the edges of a hunk. Ignored context lines are left as they are in the source. A hunk with less context on one side, as ``diff`` produces at the start or end of a file, only applies at that edge of the source. * Oddities are tolerated like GNU ``patch``: * Hunks cut short at the end of the patch * Context lines that have lost their leading space (empty and tab-led lines) * ``\ No newline at end of file`` markers Only unified diff format is supported, not the older context or ``ed`` formats. Hence the name is ``unipatch``.
Package information
- Homepage
- [https://github.com/adamchainz/unipatch]
- License
- MIT
- Downstream package maintainer
- Unknown: not reported in the indexed source
The following binary packages are built from this source package:
- python313-unipatch
Apply unified diffs in memory, compatible with GNU patch
- python314-unipatch
Apply unified diffs in memory, compatible with GNU patch
