>Maybe should this sample be rewritten by stopping the revwalk after the 10th git_revwalk_next() call?

Or by switching to C#... :trollface: 

```csharp
foreach (Commit c in repo.Commits.Take(10))
{
    Console.WriteLine(string.Format("commit {0}", c.Id));
}
```