Manipulate patch files