diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-11-10 06:48:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-12 06:50:05 +0100 |
commit | 96ab6e0b30a490fc38bece66134d9ec0c25998ba (patch) | |
tree | ef4e0339c05037d2c5514eb0c3f67a8471e296b0 /list-objects.c | |
parent | list-objects-filter.c: remove implicit dependency on the_index (diff) | |
download | git-96ab6e0b30a490fc38bece66134d9ec0c25998ba.tar.xz git-96ab6e0b30a490fc38bece66134d9ec0c25998ba.zip |
list-objects.c: reduce the_repository references
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects.c')
-rw-r--r-- | list-objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c index 0cfd646026..cf7f25bed3 100644 --- a/list-objects.c +++ b/list-objects.c @@ -123,7 +123,7 @@ static void process_tree_contents(struct traversal_context *ctx, } if (S_ISDIR(entry.mode)) { - struct tree *t = lookup_tree(the_repository, entry.oid); + struct tree *t = lookup_tree(ctx->revs->repo, entry.oid); t->object.flags |= NOT_USER_GIVEN; process_tree(ctx, t, base, entry.path); } @@ -131,7 +131,7 @@ static void process_tree_contents(struct traversal_context *ctx, process_gitlink(ctx, entry.oid->hash, base, entry.path); else { - struct blob *b = lookup_blob(the_repository, entry.oid); + struct blob *b = lookup_blob(ctx->revs->repo, entry.oid); b->object.flags |= NOT_USER_GIVEN; process_blob(ctx, b, base, entry.path); } |