mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
Convert lookup_tree to struct object_id
Convert the lookup_tree function to take a pointer to struct object_id. The commit was created with manual changes to tree.c, tree.h, and object.c, plus the following semantic patch: @@ @@ - lookup_tree(EMPTY_TREE_SHA1_BIN) + lookup_tree(&empty_tree_oid) @@ expression E1; @@ - lookup_tree(E1.hash) + lookup_tree(&E1) @@ expression E1; @@ - lookup_tree(E1->hash) + lookup_tree(E1) Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
49a09e74a4
commit
740ee055c6
2
fsck.c
2
fsck.c
@@ -358,7 +358,7 @@ static int fsck_walk_tree(struct tree *tree, void *data, struct fsck_options *op
|
||||
continue;
|
||||
|
||||
if (S_ISDIR(entry.mode)) {
|
||||
obj = &lookup_tree(entry.oid->hash)->object;
|
||||
obj = &lookup_tree(entry.oid)->object;
|
||||
if (name)
|
||||
put_object_name(options, obj, "%s%s/", name,
|
||||
entry.path);
|
||||
|
||||
Reference in New Issue
Block a user