git-apply: parse the whole list of patches into memory first