How does google doc implement version control


How does google doc save user edit actions and use them to restore to a certain version?

Do they only save action logs? Or use snapshot & action logs together?