libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 316 forks source link

Unable to stop iteration in tree.Walk() since #700 #837

Closed fabpot closed 3 years ago

fabpot commented 3 years ago

Since the refactoring done in #700, there is no way I can see that allows stopping the iteration from a callback passed to tree.Walk().

Before the PR, it was a matter of returning 1. Now, that does not work anymore.

Am I missing something? Is there any other way now to stop the iteration?

/cc @lhchavez

fabpot commented 3 years ago

Thank you so much!