mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
struct name_entry: use struct object_id instead of unsigned char sha1[20]
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
82db3d44e7
commit
7d924c9139
4
walker.c
4
walker.c
@@ -43,12 +43,12 @@ static int process_tree(struct walker *walker, struct tree *tree)
|
||||
if (S_ISGITLINK(entry.mode))
|
||||
continue;
|
||||
if (S_ISDIR(entry.mode)) {
|
||||
struct tree *tree = lookup_tree(entry.sha1);
|
||||
struct tree *tree = lookup_tree(entry.oid->hash);
|
||||
if (tree)
|
||||
obj = &tree->object;
|
||||
}
|
||||
else {
|
||||
struct blob *blob = lookup_blob(entry.sha1);
|
||||
struct blob *blob = lookup_blob(entry.oid->hash);
|
||||
if (blob)
|
||||
obj = &blob->object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user