archive: convert sha1_file_to_archive to struct object_id