Rewrite patch parser for git created patch.