Module patch

Module patch 

Source

Functionsยง

apply_patch_to_index
Apply patch to staging area
create_patch_for_changes
Create a patch for specific file changes with hunk selection
create_patch_for_files
Create a patch for specific files
reset_staging
Reset staging area
stage_files
Stage specific files (simpler alternative to patch application)
stage_group_changes
Stage changes for a specific group (hunk-aware). The full_diff argument must be taken before any compose commits run so the recorded hunk headers remain stable across groups.