Skip to content

Commit a48779b

Browse files
Carson Howardcjhoward92
authored andcommitted
Added blob methods and converted to async
1 parent 427f987 commit a48779b

File tree

3 files changed

+453
-5
lines changed

3 files changed

+453
-5
lines changed

generate/input/descriptor.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"selfFreeing": true,
131131
"functions": {
132132
"git_blob_create_frombuffer": {
133-
"isAsync": false,
133+
"isAsync": true,
134134
"args": {
135135
"id": {
136136
"isReturn": true
@@ -141,11 +141,59 @@
141141
}
142142
}
143143
},
144+
"git_blob_create_fromworkdir": {
145+
"isAsync": true,
146+
"args": {
147+
"id": {
148+
"isReturn": true
149+
}
150+
},
151+
"return": {
152+
"isErrorCode": true
153+
}
154+
},
155+
"git_blob_create_fromdisk": {
156+
"isAsync": true,
157+
"args": {
158+
"id": {
159+
"isReturn": true
160+
}
161+
},
162+
"return": {
163+
"isErrorCode": true
164+
}
165+
},
144166
"git_blob_create_fromchunks": {
145167
"ignore": true
146168
},
147169
"git_blob_filtered_content": {
148-
"ignore": true
170+
"isAsync": true,
171+
"isPrototypeMethod": false,
172+
"args": {
173+
"out": {
174+
"isReturn": true,
175+
"cppClassName": "GitBuf",
176+
"jsClassName": "Buffer"
177+
},
178+
"blob": {
179+
"cppClassName": "GitBlob",
180+
"jsClassName": "Blob",
181+
"isSelf": false
182+
},
183+
"as_path": {
184+
"cppClassName": "String",
185+
"jsClassName": "String",
186+
"cType": "const char *"
187+
},
188+
"check_for_binary_data": {
189+
"cppClassName": "Number",
190+
"jsClassName": "Number",
191+
"cType": "int"
192+
}
193+
},
194+
"return": {
195+
"isErrorCode": true
196+
}
149197
},
150198
"git_blob_id": {
151199
"return": {

0 commit comments

Comments
 (0)