sha1_file: convert force_object_loose to object_id
Convert the definition and declaration of force_object_loose to struct object_id and adjust usage of this function. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a09c985eae
commit
4bdb70a4f7
@ -2768,7 +2768,7 @@ static void loosen_unused_packed_objects(struct rev_info *revs)
|
||||
if (!packlist_find(&to_pack, oid.hash, NULL) &&
|
||||
!has_sha1_pack_kept_or_nonlocal(&oid) &&
|
||||
!loosened_object_can_be_discarded(&oid, p->mtime))
|
||||
if (force_object_loose(oid.hash, p->mtime))
|
||||
if (force_object_loose(&oid, p->mtime))
|
||||
die("unable to force loose object");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user