If an intermediate tree already exists and we know this ahead of time,
we should use it without recreating it with all of its contents resolved
and written recursively. This commit adds support for such cases and
renames TreeBuilder's APIs to generalize away from accepting blob IDs
only.
Signed-off-by: Aditya Sirish <aditya@saky.in>
The before condition check was incorrect when handling repositories that
were not numbered from the start. This commit updates the before entry
number condition to only apply if the entry being examined is in fact
numbered.
This commit also adds some debug statements.
Signed-off-by: Aditya Sirish <aditya@saky.in>