diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-23 15:43:38 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-11-22 15:10:19 +1100 |
commit | 4334b1779f661bf9a77c68c928e970cf9d25b477 (patch) | |
tree | 1e909d5854b3c97f5ca12841af16c031014ad377 /include | |
parent | bed9fc6b59eafc9ad197a7ff7215ed6be97663ae (diff) | |
download | libgit2-4334b1779f661bf9a77c68c928e970cf9d25b477.tar.gz |
blob: use `git_object_size_t` for object size
Instead of using a signed type (`off_t`) use a new `git_object_size_t`
for the sizes of objects.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/blob.h | 2 | ||||
-rw-r--r-- | include/git2/diff.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/git2/blob.h b/include/git2/blob.h index 40f922b71..7e2a745d1 100644 --- a/include/git2/blob.h +++ b/include/git2/blob.h @@ -94,7 +94,7 @@ GIT_EXTERN(const void *) git_blob_rawcontent(const git_blob *blob); * @param blob pointer to the blob * @return size on bytes */ -GIT_EXTERN(git_off_t) git_blob_rawsize(const git_blob *blob); +GIT_EXTERN(git_object_size_t) git_blob_rawsize(const git_blob *blob); /** * Flags to control the functionality of `git_blob_filter`. diff --git a/include/git2/diff.h b/include/git2/diff.h index 73c5e55b9..490b40605 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -258,12 +258,12 @@ typedef enum { * abbreviated to something reasonable, like 7 characters. */ typedef struct { - git_oid id; - const char *path; - git_off_t size; - uint32_t flags; - uint16_t mode; - uint16_t id_abbrev; + git_oid id; + const char *path; + git_object_size_t size; + uint32_t flags; + uint16_t mode; + uint16_t id_abbrev; } git_diff_file; /** |