@@ -341,6 +341,7 @@ void add_object_array_with_path_and_referred_commit(struct object *obj, const ch
}
referred_objs->commit = referred_commit;
referred_objs->trees = NULL;
+ referred_objs->tags = NULL;
entry = &objects[nr];
entry->item = obj;
entry->referred_objects = referred_objs;
@@ -54,8 +54,8 @@ struct object_array {
unsigned mode;
/*
* referred_objects or NULL. If non-NULL, it will
- * temporary storage the referred commit and trees when
- * traversing the specified object. Space for time,
+ * temporary storage the referred commit, trees and tags
+ * when traversing the specified object. Space for time,
* reduce related computing costs (such as packfile-uri
* exclusion), clean up when the traversal is over.
*/
@@ -68,6 +68,7 @@ struct object_array {
struct referred_objects{
struct object *commit;
struct object_list *trees;
+ struct object_list *tags;
};
/*
* object flag allocation:
Signed-off-by: Teng Long <dyroneteng@gmail.com> --- object.c | 1 + object.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-)