]> git.proxmox.com Git - libgit2.git/commit - src/tree.c
tree: fix ordering for git_tree_walk
authorMichael Schubert <schu@schu.io>
Thu, 19 Jul 2012 15:33:48 +0000 (17:33 +0200)
committerMichael Schubert <schu@schu.io>
Thu, 19 Jul 2012 16:44:08 +0000 (18:44 +0200)
commitc6f429535c011160dc60547e5147695f2107a260
tree934dd9674b3b1f9d21abb0b9c3d5ed0ebb13cc7d
parent5a8204f8a88c59c2cb07b93930834ef0a5aaf1fc
tree: fix ordering for git_tree_walk

Josh Triplett noticed libgit2 actually does preorder entries in
tree_walk_post instead of postorder. Also, we continued walking even
when an error occured in the callback.

Fix #773; also, allow both pre- and postorder walking.
src/tree.c