Signed-off-by: Teng Long <dyroneteng@xxxxxxxxx> --- object.c | 1 + object.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/object.c b/object.c index 69ba0baf95..b25b2e2919 100644 --- a/object.c +++ b/object.c @@ -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; diff --git a/object.h b/object.h index 3785546adf..bd59eaa6d9 100644 --- a/object.h +++ b/object.h @@ -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: -- 2.31.1.456.gec51e24953