- Notifications
You must be signed in to change notification settings - Fork 30
Support non-strict patch application #30
Copy link
Copy link
Open
Labels
applyingIssues related to applying patchesIssues related to applying patchesenhancementNew feature or requestNew feature or request
Description
Metadata
Metadata
Assignees
Labels
applyingIssues related to applying patchesIssues related to applying patchesenhancementNew feature or requestNew feature or request
Currently, an
Appliercan only apply patches in "strict" mode, where line numbers and context lines must match exactly. Git supports a more flexible model when applying patches that allow them to work in more situations, such as cherry-picking changes to different branches:I think copying Git's whitespace normalization could get complicated, but it would be nice to at least support exact matches on different lines or matches with reduced context.