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
@ -501,8 +501,7 @@ static void fill_blob_sha1(struct commit *commit, struct diff_filespec *spec)
|
||||
unsigned mode;
|
||||
struct object_id oid;
|
||||
|
||||
if (get_tree_entry(commit->object.oid.hash, spec->path,
|
||||
oid.hash, &mode))
|
||||
if (get_tree_entry(&commit->object.oid, spec->path, &oid, &mode))
|
||||
die("There is no path %s in the commit", spec->path);
|
||||
fill_filespec(spec, &oid, 1, mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user