Convert struct ref to use object_id.
Use struct object_id in three fields in struct ref and convert all the necessary places that use it. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:

committed by
Jeff King

parent
b419aa25d5
commit
f4e54d02b8
2
walker.c
2
walker.c
@ -190,7 +190,7 @@ static int interpret_target(struct walker *walker, char *target, unsigned char *
|
||||
if (!check_refname_format(target, 0)) {
|
||||
struct ref *ref = alloc_ref(target);
|
||||
if (!walker->fetch_ref(walker, ref)) {
|
||||
hashcpy(sha1, ref->old_sha1);
|
||||
hashcpy(sha1, ref->old_oid.hash);
|
||||
free(ref);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user