mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 10:17:20 +00:00
tree: bring back the documented behaviour for a walk
However, there should be a way to cancel the walk and another to skip the entry.
This commit is contained in:
parent
c9d78bde94
commit
53ae12359d
@ -787,10 +787,8 @@ static int tree_walk(
|
||||
for (i = 0; i < tree->entries.length; ++i) {
|
||||
git_tree_entry *entry = tree->entries.contents[i];
|
||||
|
||||
if (preorder && callback(path->ptr, entry, payload)) {
|
||||
error = GIT_EUSER;
|
||||
break;
|
||||
}
|
||||
if (preorder && callback(path->ptr, entry, payload) < 0)
|
||||
continue
|
||||
|
||||
if (git_tree_entry__is_tree(entry)) {
|
||||
git_tree *subtree;
|
||||
|
Loading…
Reference in New Issue
Block a user