templates / branches--on commit diff: don't read index when --no-index is given (6df5762)
   1: this is just to ensure the directory exists.