commit ddf1c734917dc112c7e5d7e89b7600ea59ef4d8e from: Stefan Sperling date: Sun Dec 23 13:54:03 2018 UTC make got_object_blob_id_str() a private API commit - 15a949835c36ceb581fc115aff744dbb30b12918 commit + ddf1c734917dc112c7e5d7e89b7600ea59ef4d8e blob - 514355200012b8f3306f409556261bae2b9822f8 blob + dbace0ccd5992225eb6e06b3608667667ff43d3f --- include/got_object.h +++ include/got_object.h @@ -182,14 +182,6 @@ got_object_open_as_blob(struct got_blob_object **, void got_object_blob_close(struct got_blob_object *); /* - * Write the string representation of the object ID of a blob to a buffer. - * The size_t argument speficies the size of the buffer. In the current - * implementation, it must be at least SHA1_DIGEST_STRING_LENGTH bytes. - * XXX This is a bad API, use got_object_id_str() instead. - */ -char *got_object_blob_id_str(struct got_blob_object*, char *, size_t); - -/* * Get the length of header data at the beginning of the blob's read buffer. * Note that header data is only present upon the first invocation of * got_object_blob_read_block() after the blob is opened. blob - 87f0ab97317782cc93168da4c232f27d71c14646 blob + 14bd628bae7ca8d8048fca27f37f546c5aca6701 --- lib/got_lib_object.h +++ lib/got_lib_object.h @@ -88,5 +88,6 @@ const struct got_error *got_object_tree_open(struct go struct got_repository *, struct got_object *); const struct got_error *got_object_blob_open(struct got_blob_object **, struct got_repository *, struct got_object *, size_t); +char *got_object_blob_id_str(struct got_blob_object*, char *, size_t); const struct got_error *got_object_tag_open(struct got_tag_object **, struct got_repository *, struct got_object *);