tree-walk: convert tree entry functions to object_id
Convert get_tree_entry and find_tree_entry to take pointers to struct object_id. 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
575042a04f
commit
916bc35b29
@ -370,12 +370,12 @@ static struct stage_data *insert_stage_data(const char *path,
|
||||
{
|
||||
struct string_list_item *item;
|
||||
struct stage_data *e = xcalloc(1, sizeof(struct stage_data));
|
||||
get_tree_entry(o->object.oid.hash, path,
|
||||
e->stages[1].oid.hash, &e->stages[1].mode);
|
||||
get_tree_entry(a->object.oid.hash, path,
|
||||
e->stages[2].oid.hash, &e->stages[2].mode);
|
||||
get_tree_entry(b->object.oid.hash, path,
|
||||
e->stages[3].oid.hash, &e->stages[3].mode);
|
||||
get_tree_entry(&o->object.oid, path,
|
||||
&e->stages[1].oid, &e->stages[1].mode);
|
||||
get_tree_entry(&a->object.oid, path,
|
||||
&e->stages[2].oid, &e->stages[2].mode);
|
||||
get_tree_entry(&b->object.oid, path,
|
||||
&e->stages[3].oid, &e->stages[3].mode);
|
||||
item = string_list_insert(entries, path);
|
||||
item->util = e;
|
||||
return e;
|
||||
|
||||
Reference in New Issue
Block a user