| 2735 | } |
| 2736 | |
| 2737 | static inline void oe_set_tree_depth(struct packing_data *pack, |
| 2738 | struct object_entry *e, |
| 2739 | unsigned int tree_depth) |
| 2740 | { |
| 2741 | if (!pack->tree_depth) |
| 2742 | CALLOC_ARRAY(pack->tree_depth, pack->nr_alloc); |
| 2743 | pack->tree_depth[e - pack->objects] = tree_depth; |
| 2744 | } |
| 2745 | |
| 2746 | /* |
| 2747 | * Return the size of the object without doing any delta |