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
Expose more config methods
Exposes config methods:
- git_config_delete_entry
- git_config_delete_multivar
- git_config_get_bool
- git_config_get_int32
- git_config_get_int64
- git_config_set_multivar
- git_config_snapshot

Exposes git_config_iterator:
- git_config_iterator_new -> ConfigIterator.create
- git_config_iterator_glob_new -> ConfigIterator.createGlob
- git_config_multivar_iterator_new -> ConfigIterator.createMultivar
- git_config_next -> ConfigIterator.prototype.next
  • Loading branch information
implausible committed Feb 19, 2019
commit e166699924f0eeb9d8f435c449b3ae6103c2049a
131 changes: 109 additions & 22 deletions generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,14 @@
"ignore": true
},
"git_config_delete_entry": {
"ignore": true
"return": {
"isErrorCode": true
}
},
"git_config_delete_multivar": {
"ignore": true
"return": {
"isErrorCode": true
}
},
"git_config_entry_free": {
"ignore": true
Expand Down Expand Up @@ -762,7 +766,14 @@
"ignore": true
},
"git_config_get_bool": {
"ignore": true
"args": {
"out": {
"shouldAlloc": true
}
},
"return": {
"isErrorCode": true
}
},
"git_config_get_entry": {
"args": {
Expand All @@ -773,10 +784,26 @@
}
},
"git_config_get_int32": {
"ignore": true
"args": {
"out": {
"cType": "int32_t *",
"shouldAlloc": true
}
},
"return": {
"isErrorCode": true
}
},
"git_config_get_int64": {
"ignore": true
"args": {
"out": {
"cType": "int64_t *",
"shouldAlloc": true
}
},
"return": {
"isErrorCode": true
}
},
"git_config_get_mapped": {
"ignore": true
Expand Down Expand Up @@ -814,15 +841,6 @@
"git_config_init_backend": {
"ignore": true
},
"git_config_iterator_free": {
"ignore": true
},
"git_config_iterator_glob_new": {
"ignore": true
},
"git_config_iterator_new": {
"ignore": true
},
"git_config_lock": {
"isAsync": true,
"args": {
Expand All @@ -838,15 +856,9 @@
"git_config_lookup_map_value": {
"ignore": true
},
"git_config_multivar_iterator_new": {
"ignore": true
},
"git_config_new": {
"ignore": true
},
"git_config_next": {
"ignore": true
},
"git_config_open_default": {
"isAsync": true,
"return": {
Expand Down Expand Up @@ -900,14 +912,27 @@
"isErrorCode": true
}
},
"git_config_set_multivar": {
"isAsync": true,
"return": {
"isErrorCode": true
}
},
"git_config_set_string": {
"isAsync": true,
"return": {
"isErrorCode": true
}
},
"git_config_snapshot": {
"ignore": true
"args": {
"out": {
"ownedByThis": true
}
},
"return": {
"isErrorCode": true
}
}
},
"dependencies": [
Expand All @@ -921,7 +946,69 @@
"selfFreeing": true
},
"config_iterator": {
"ignore": true
"selfFreeing": true,
"fields": {
"backend": {
"ignore": true
},
"flags": {
"ignore": true
},
"free": {
"ignore": true
},
"next": {
"ignore": true
}
},
"functions": {
"git_config_iterator_free": {
"ignore": true
},
"git_config_iterator_new": {
"args": {
"out": {
"ownedBy": ["cfg"]
}
},
"return": {
"isErrorCode": true
}
},
"git_config_iterator_glob_new": {
"jsFunctionName": "createGlob",
"args": {
"out": {
"ownedBy": ["cfg"]
}
},
"return": {
"isErrorCode": true
}
},
"git_config_multivar_iterator_new": {
"jsFunctionName": "createMultivar",
"args": {
"out": {
"ownedBy": ["cfg"]
}
},
"return": {
"isErrorCode": true
}
},
"git_config_next": {
"jsFunctionName": "next",
"args": {
"entry": {
"ownedByThis": true
}
},
"return": {
"isErrorCode": true
}
}
}
},
"cred": {
"needsForwardDeclaration": false,
Expand Down
19 changes: 19 additions & 0 deletions generate/input/libgit2-supplement.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,16 @@
"git_annotated_commit_ref"
]
],
[
"config_iterator",
[
"git_config_iterator_free",
"git_config_iterator_new",
"git_config_iterator_glob_new",
"git_config_multivar_iterator_new",
"git_config_next"
]
],
[
"diff_stats",
[
Expand Down Expand Up @@ -1153,6 +1163,15 @@
"git_annotated_commit_ref"
]
},
"config": {
"functions": [
"git_config_iterator_free",
"git_config_iterator_new",
"git_config_iterator_glob_new",
"git_config_multivar_iterator_new",
"git_config_next"
]
},
"diff": {
"functions": [
"git_diff_stats_files_changed",
Expand Down