I think that, although correct, this might be less clear to the reader. Maybe should this sample be rewritten by stopping the revwalk after the 10th `git_revwalk_next()` call?