Support reseting files using Repository#reset_file