templates / branches--on commit grep: move logic to compile header pattern into a separate helper (95ce9ce)
   1: this is just to ensure the directory exists.