Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pack-objects: move tree_depth into 'struct packing_data'
[gitweb.git]
/
builtin
/
pack-objects.c
diff --git
a/builtin/pack-objects.c
b/builtin/pack-objects.c
index 30ef48dc43be25d6ca92e08140d59fd9e9119e27..fd3e514b31b456c23c8c157ba038f327cfcffd1f 100644
(file)
--- a/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@
-2716,8
+2716,8
@@
static void show_object(struct object *obj, const char *name, void *data)
depth++;
ent = packlist_find(&to_pack, obj->oid.hash, NULL);
- if (ent && depth >
ent->tree_depth
)
-
ent->tree_depth = depth
;
+ if (ent && depth >
oe_tree_depth(&to_pack, ent)
)
+
oe_set_tree_depth(&to_pack, ent, depth)
;
}
}