templates / branches--on commit branch.c: use 'ref-filter' APIs (aedcb7d)
   1: this is just to ensure the directory exists.