git-am foreign patch support: introduce patch_format