templates / branches--on commit refs: implement simple transactions for the packed-refs file (9f69d29)
   1: this is just to ensure the directory exists.