templates / branches--on commit git-am foreign patch support: autodetect some patch formats (15ced75)
   1: this is just to ensure the directory exists.