Add get_commit_doc to mongo_object