templates / branches--on commit restore: support --patch (2f0896e)
   1: this is just to ensure the directory exists.