Skip to main content

Module apply

Module apply 

Source
Expand description

Application of selected diff entries to files on disk.

Used by interactive mode to write only the changes the user accepted. Each entry carries the underlying crate::analyzer::TextEdit, so changes are applied through the same crate::fixer::apply_suggestions engine as the fix command — collision-safe and comment-preserving. An entry is skipped if the file no longer matches the line the diff was generated from.

Functions§

apply_diff
Applies selected diff entries to their files.