Skip to content

Commit 3727c82

Browse files
committed
added rawsize to git2_blob
1 parent 99d8260 commit 3727c82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git2_blob.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static PHP_METHOD(Blob, lookup_oid) {
9595

9696
GIT2_BLOB_GET_OID(id)
9797
GIT2_BLOB_GET_BOOL(is_binary)
98+
GIT2_BLOB_GET_LONG(rawsize)
9899

99100
ZEND_BEGIN_ARG_INFO_EX(arginfo_blob_rawcontent, 0, 0, 0)
100101
ZEND_END_ARG_INFO()
@@ -153,6 +154,7 @@ static zend_function_entry git2_blob_methods[] = {
153154
PHP_GIT2_BLOB_ME_P(id)
154155
PHP_GIT2_BLOB_ME_P(is_binary)
155156
PHP_GIT2_BLOB_ME_P(rawcontent)
157+
PHP_GIT2_BLOB_ME_P(rawsize)
156158
/* PHP_ME(Blob, __construct, arginfo___construct, ZEND_ACC_PUBLIC) */
157159
{ NULL, NULL, NULL }
158160
};

0 commit comments

Comments
 (0)