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

Closed
opened 2021-09-29 01:15:34 -05:00 by fabpot · 1 comment
fabpot commented 2021-09-29 01:15:34 -05:00 (Migrated from github.com)

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

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 2021-10-01 02:31:26 -05:00 (Migrated from github.com)

Thank you so much!

Thank you so much!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#837
No description provided.