Function | iter_file_patch | |
Function | parse_patches |
Parameters | iter_lines | iterable of lines to parse for patches |
Unknown Field: kwarg | allow_dirty | If True, allow comments and other non-patch text before the first patch. Note that the algorithm here can only find such text before any patches have been found. Comments after the first patch are stripped away in iter_hunks() if it is also passed allow_dirty=True. Default False. |
Parameters | iter_lines | iterable of lines to parse for patches |
Unknown Field: kwarg | allow_dirty | If True, allow text that's not part of the patch at selected places. This includes comments before and after a patch for instance. Default False. |
keep_dirty | If True, returns a dict of patches with dirty headers. Default False. |