ref_newer: convert to use struct object_id
Convert ref_newer and its caller to use struct object_id instead of unsigned char *. 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
27912a03fd
commit
6f3d57b6e4
@ -417,7 +417,7 @@ static int get_push_ref_states(const struct ref *remote_refs,
|
||||
else if (is_null_oid(&ref->old_oid))
|
||||
info->status = PUSH_STATUS_CREATE;
|
||||
else if (has_object_file(&ref->old_oid) &&
|
||||
ref_newer(ref->new_oid.hash, ref->old_oid.hash))
|
||||
ref_newer(&ref->new_oid, &ref->old_oid))
|
||||
info->status = PUSH_STATUS_FASTFORWARD;
|
||||
else
|
||||
info->status = PUSH_STATUS_OUTOFDATE;
|
||||
|
Reference in New Issue
Block a user