templates / branches--on commit refs: document do_for_each_ref() and do_one_ref() (fcce170)
   1: this is just to ensure the directory exists.