git_bare: Refactor the graph descent using explicit stacks instead of the call stack.
This will allow batching large groups of objects, instead of being limited to those given as argument from a parent.
Depends on !88 (closed).
(note: I forgot to open this diff earlier, it's actually a parent of !89 (closed))
Migrated from D5733 (view on Phabricator)