templates / branches--on commit notes: implement helpers needed for note copying during rewrite (6956f85)
   1: this is just to ensure the directory exists.