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
2 changes: 1 addition & 1 deletion examples/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fse.remove(path).then(function() {
certificateCheck: function() {
// github will fail cert check on some OSX machines
// this overrides that check
return 1;
return 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cloneFromGithubWith2Factor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var opts = {
return nodegit.Cred.userpassPlaintextNew(token, "x-oauth-basic");
},
certificateCheck: function() {
return 1;
return 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ nodegit.Repository.open(path.resolve(__dirname, repoDir))
return nodegit.Cred.sshKeyFromAgent(userName);
},
certificateCheck: function() {
return 1;
return 0;
}
}
});
Expand Down
206 changes: 116 additions & 90 deletions generate/input/callbacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,32 @@
"error": -1
}
},
"git_commit_signing_cb": {
"args": [
{
"name": "signature",
"cType": "git_buf *"
},
{
"name": "signature_field",
"cType": "git_buf *"
},
{
"name": "commit_content",
"cType": "const char *"
},
{
"name": "payload",
"cType": "void *"
}
],
"return": {
"type": "int",
"noResults": -30,
"success": 0,
"error": -1
}
},
"git_config_foreach_cb": {
"args": [
{
Expand Down Expand Up @@ -311,101 +337,101 @@
"error": -1
}
},
"git_filter_apply_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"name": "payload",
"cType": "void **"
},
{
"name": "to",
"cType": "git_buf *"
},
{
"name": "from",
"cType": "const git_buf *"
},
{
"name": "src",
"cType": "const git_filter_source *"
}
],
"return": {
"type": "int",
"noResults": -30,
"success": 0,
"error": -1
}
},
"git_filter_check_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"git_filter_apply_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"name": "payload",
"cType": "void **"
},
{
"name": "to",
"cType": "git_buf *"
},
{
"name": "from",
"cType": "const git_buf *"
},
{
"name": "src",
"cType": "const git_filter_source *"
}
],
"return": {
"type": "int",
"noResults": -30,
"success": 0,
"error": -1
}
},
"git_filter_check_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"name": "payload",
"cType": "void **"
},
{
},
{
"name": "src",
"cType": "const git_filter_source *"
},
{
"name": "attr_values",
"cType": "const char **"
}
],
"return": {
"type": "int",
"noResults": -30,
"success": 0,
"error": -1
}
},
"git_filter_cleanup_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"name": "payload",
"cType": "void *"
}
],
"return": {
"type": "void"
}
},
"git_filter_init_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
}
],
"return": {
"type": "int",
},
{
"name": "attr_values",
"cType": "const char **"
}
],
"return": {
"type": "int",
"noResults": -30,
"success": 0,
"error": -1
}
},
"git_filter_cleanup_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
},
{
"name": "payload",
"cType": "void *"
}
],
"return": {
"type": "void"
}
},
"git_filter_init_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
}
],
"return": {
"type": "int",
"noResults": 0,
"success": 0,
"error": -1
}
},
"git_filter_shutdown_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
}
],
"return": {
"type": "void"
}
"success": 0,
"error": -1
}
},
"git_filter_shutdown_fn": {
"args": [
{
"name": "self",
"cType": "git_filter *"
}
],
"return": {
"type": "void"
}
},
"git_index_matched_path_cb": {
"args": [
Expand Down
Loading