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
@ -1886,8 +1886,8 @@ int main(int argc, char **argv)
|
||||
!is_null_oid(&ref->old_oid) &&
|
||||
!ref->force) {
|
||||
if (!has_object_file(&ref->old_oid) ||
|
||||
!ref_newer(ref->peer_ref->new_oid.hash,
|
||||
ref->old_oid.hash)) {
|
||||
!ref_newer(&ref->peer_ref->new_oid,
|
||||
&ref->old_oid)) {
|
||||
/*
|
||||
* We do not have the remote ref, or
|
||||
* we know that the remote ref is not
|
||||
|
Reference in New Issue
Block a user