Ruby script for splitting a patch by file or into hunks.