fitzzftw.patch.patcher

Patch Application Engine

This module implements the core orchestration logic for applying patches. The central class FtwPatch manages the transition from parsed diff data to actual filesystem modifications.

Core Functionality:

  • Staging:

    Changes are first applied to temporary files to ensure atomicity.

  • Backup Management:

    Handles mandatory file backups before any write operations occur

  • Transaction Safety:

    Implements an ‘all-or-nothing’ commit strategy for multi-file patches.

Usage:

Initialize with an options object satisfying the ArgParsOptions protocol and call run().

Classes

FtwPatch

Main class for the ftwpatch program.

PatchStatistics

Collector for patch execution metrics and file operation statistics.