templates / branches--on commit builtin-mktree.c: use a helper function to handle one line of input (fe0bb5f)
   1: this is just to ensure the directory exists.