diff options
author | Carlos Martín Nieto <carlosmn@github.com> | 2019-07-29 10:51:22 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlosmn@github.com> | 2019-07-29 11:15:32 +0200 |
commit | c8e249b032f371b51d409052d571696798dbe862 (patch) | |
tree | 350239dfca247959c76e913efbe3103ffc1f3db5 /include | |
parent | e3adc99e1f9b71ceaddd650eba9c7c644290e4a6 (diff) | |
download | libgit2-cmn/object-size-nopublic.tar.gz |
object: deprecate git_object__size for removalcmn/object-size-nopublic
In #5118 we remove the double-underscore to make it a normally-named public
function. However, this is not an interesting function outside of the library
and it takes up a name for something that could be more useful.
Remove the single-underscore version as we have not done any releases with it.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/deprecated.h | 12 | ||||
-rw-r--r-- | include/git2/object.h | 14 |
2 files changed, 12 insertions, 14 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index fec56b18b..df53cf01d 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -301,6 +301,18 @@ GIT_EXTERN(int) git_index_add_frombuffer( #define GIT_OBJ_OFS_DELTA GIT_OBJECT_OFS_DELTA #define GIT_OBJ_REF_DELTA GIT_OBJECT_REF_DELTA +/** + * Get the size in bytes for the structure which + * acts as an in-memory representation of any given + * object type. + * + * For all the core types, this would the equivalent + * of calling `sizeof(git_commit)` if the core types + * were not opaque on the external API. + * + * @param type object type to get its size + * @return size in bytes of the object + */ GIT_EXTERN(size_t) git_object__size(git_object_t type); /**@}*/ diff --git a/include/git2/object.h b/include/git2/object.h index 9b4517830..2045dd8dc 100644 --- a/include/git2/object.h +++ b/include/git2/object.h @@ -186,20 +186,6 @@ GIT_EXTERN(git_object_t) git_object_string2type(const char *str); GIT_EXTERN(int) git_object_typeisloose(git_object_t type); /** - * Get the size in bytes for the structure which - * acts as an in-memory representation of any given - * object type. - * - * For all the core types, this would the equivalent - * of calling `sizeof(git_commit)` if the core types - * were not opaque on the external API. - * - * @param type object type to get its size - * @return size in bytes of the object - */ -GIT_EXTERN(size_t) git_object_size(git_object_t type); - -/** * Recursively peel an object until an object of the specified type is met. * * If the query cannot be satisfied due to the object model, |