Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions generate/input/callbacks.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
{
"git_apply_delta_cb": {
"args": [
{
"name": "delta",
"cType": "const git_diff_delta *"
},
{
"name": "payload",
"cType": "void *"
}
],
"return": {
"type": "int",
"noResults": 1,
"success": 0,
"error": -1
}
},
"git_apply_hunk_cb": {
"args": [
{
"name": "hunk",
"cType": "const git_diff_hunk *"
},
{
"name": "payload",
"cType": "void *"
}
],
"return": {
"type": "int",
"noResults": 1,
"success": 0,
"error": -1
}
},
"git_attr_foreach_cb": {
"args": [
{
Expand Down
130 changes: 127 additions & 3 deletions generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"repository_init_flag": {
"removeString": "INIT_"
},
"otype": {
"object": {
"JsName": "TYPE",
"owner": "Object",
"removeString": "OBJ_"
Expand All @@ -57,7 +57,7 @@
"JsName": "PROXY",
"isMask": false
},
"ref": {
"reference": {
"owner": "Reference",
"JsName": "TYPE"
},
Expand All @@ -71,6 +71,9 @@
"status": {
"JsName": "STATUS",
"isMask": false
},
"stream": {
"ignore": true
}
},
"types":
Expand Down Expand Up @@ -111,6 +114,9 @@
}
}
},
"apply_options": {
"hasConstructor": true
},
"attr": {
"functions": {
"git_attr_foreach": {
Expand Down Expand Up @@ -1734,10 +1740,69 @@
"../include/str_array_converter.h"
]
},
"index_conflict_iterator": {
"selfFreeing": true,
"freeFunctionName": "git_index_conflict_iterator_free",
"functions": {
"git_index_conflict_iterator_free": {
"ignore": true
},
"git_index_conflict_iterator_new": {
"args": {
"iterator_out": {
"ownedBy": ["index"]
}
}
},
"git_index_conflict_next": {
"isAsync": false,
"jsFunctionName": "next",
"cppFunctionName": "Next",
"args": {
"ancestor_out": {
"isReturn": true,
"ownedByThis": true
},
"our_out": {
"isReturn": true,
"ownedByThis": true
},
"their_out": {
"isReturn": true,
"ownedByThis": true
}
}
}
}
},
"index_entry": {
"hasConstructor": true,
"ignoreInit": true
},
"index_iterator": {
"selfFreeing": true,
"freeFunctionName": "git_index_iterator_free",
"functions": {
"git_index_iterator_free": {
"ignore": true
},
"git_index_iterator_new": {
"args": {
"iterator_out": {
"ownedBy": ["index"]
}
}
},
"git_index_iterator_next": {
"isAsync": false,
"args": {
"out": {
"ownedByThis": true
}
}
}
}
},
"index_name_entry": {
"functions": {
"git_index_name_add": {
Expand Down Expand Up @@ -1768,6 +1833,11 @@
]
},
"index_reuc_entry": {
"fields": {
"mode": {
"cType": "uint32_t [3]"
}
},
"functions": {
"git_index_reuc_add": {
"cppFunctionName": "Add",
Expand Down Expand Up @@ -1934,7 +2004,51 @@
}
},
"git_merge_analysis": {
"ignore": true
"isAsync": true,
"args": {
"analysis_out": {
"isReturn": true
},
"preference_out": {
"isReturn": true
},
"their_heads": {
"cType": "const git_annotated_commit **",
"cppClassName": "Array",
"jsClassName": "Array",
"arrayElementCppClassName": "GitAnnotatedCommit"
},
"their_heads_len": {
"cType": "size_t",
"cppClassName": "Number",
"jsClassName": "Number"
}
}
},
"git_merge_analysis_for_ref": {
"isAsync": true,
"args": {
"analysis_out": {
"isReturn": true
},
"preference_out": {
"isReturn": true
},
"their_heads": {
"cType": "const git_annotated_commit **",
"cppClassName": "Array",
"jsClassName": "Array",
"arrayElementCppClassName": "GitAnnotatedCommit"
},
"their_heads_len": {
"cType": "size_t",
"cppClassName": "Number",
"jsClassName": "Number"
}
},
"return": {
"isErrorCode": true
}
},
"git_merge_base_many": {
"ignore": true
Expand Down Expand Up @@ -2854,6 +2968,13 @@
}
}
},
"git_remote_create_with_opts": {
"args": {
"opts": {
"isOptional": true
}
}
},
"git_remote_connect": {
"isAsync": true,
"return": {
Expand Down Expand Up @@ -3433,6 +3554,9 @@
"git2/sys/stream.h"
]
},
"stream_registration": {
"ignore": true
},
"submodule": {
"selfFreeing": true,
"ownerFn": {
Expand Down
Loading