-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
enhancementNew feature or requestNew feature or requestparsingIssues related to parsing patchesIssues related to parsing patches
Description
If a patch is malformed or a File is created directly, various fields may disagree. Add a validate function that checks for these types of issues so clients (e.g. appliers) can rely on the content of the fields.
Some of the issues to check:
IsRenameis true/false butOldNameandNewNameare equal/not equalIsDeleteorIsNewis true but there is more than one fragmentIsDeleteis true but the single fragment has context or addition lines orNewPositionandNewLinesare not 0IsNewis true but the single fragment has context or deletion lines orOldPositionandOldLinesare not 0IsBinaryis true butTextFragmentsis not empty
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestparsingIssues related to parsing patchesIssues related to parsing patches