commit: add generation number to struct commit