templates / branches--on commit add_file_to_index: skip rehashing if the cached stat already matches (0781b8a)
   1: this is just to ensure the directory exists.