templates / branches--on commit tree-diff: avoid alloca for large allocations (b8ba412)
   1: this is just to ensure the directory exists.