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
108 changes: 108 additions & 0 deletions generate/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,20 @@
"arrayElementCppClassName": "GitCommit"
}
}
},
"git_commit_create_from_callback": {
"ignore": true
},
"git_commit_create_from_ids": {
"ignore": true
}
}
},
"config": {
"functions": {
"git_config_add_backend": {
"ignore": true
},
"git_config_add_file_ondisk": {
"ignore": true
},
Expand Down Expand Up @@ -180,6 +189,9 @@
"git_config_iterator_new": {
"ignore": true
},
"git_config_init_backend": {
"ignore": true
},
"git_config_lookup_map_value": {
"ignore": true
},
Expand Down Expand Up @@ -227,6 +239,9 @@
"config_backend": {
"ignore": true
},
"config_iterator": {
"ignore": true
},
"cred": {
"cType": "git_cred",
"functions": {
Expand Down Expand Up @@ -271,6 +286,9 @@
"ignore": true
},
"diff": {
"cDependencies": [
"git2/sys/diff.h"
],
"functions": {
"git_diff_blob_to_buffer": {
"ignore": true
Expand Down Expand Up @@ -323,6 +341,12 @@
"git_diff_print": {
"ignore": true
},
"git_diff_print_callback__to_buf": {
"ignore": true
},
"git_diff_print_callback__to_file_handle": {
"ignore": true
},
"git_diff_stats_deletions": {
"ignore": true
},
Expand Down Expand Up @@ -370,6 +394,11 @@
"diff_format_email_options": {
"ignore": true
},
"diff_perfdata": {
"cDependencies": [
"git2/sys/diff.h"
]
},
"diff_similarity_metric": {
"ignore": true
},
Expand All @@ -389,6 +418,27 @@
},
"git_filter_list_load": {
"ignore": true
},
"git_filter_list_push": {
"ignore": true
},
"git_filter_source_filemode": {
"ignore": true
},
"git_filter_source_id": {
"ignore": true
},
"git_filter_source_mode": {
"ignore": true
},
"git_filter_source_options": {
"ignore": true
},
"git_filter_source_path": {
"ignore": true
},
"git_filter_source_repo": {
"ignore": true
}
},
"fields": {
Expand Down Expand Up @@ -483,6 +533,16 @@
}
}
},
"mempack": {
"functions": {
"git_mempack_new": {
"ignore": true
},
"git_mempack_reset": {
"ignore": true
}
}
},
"merge": {
"functions": {
"git_merge": {
Expand Down Expand Up @@ -548,6 +608,12 @@
},
"odb": {
"functions": {
"git_odb_add_alternate": {
"ignore": true
},
"git_odb_add_backend": {
"ignore": true
},
"git_odb_backend_loose": {
"ignore": true
},
Expand All @@ -566,12 +632,18 @@
"git_odb_foreach": {
"ignore": true
},
"git_odb_get_backend": {
"ignore": true
},
"git_odb_hash": {
"ignore": true
},
"git_odb_hashfile": {
"ignore": true
},
"git_odb_init_backend": {
"ignore": true
},
"git_odb_new": {
"ignore": true
},
Expand Down Expand Up @@ -616,6 +688,17 @@
}
}
},
"odb_backend": {
"fields": {
"foreach": {
"ignore": true
},
"writepack": {
"ignore": true
}
},
"ignore": true
},
"odb_stream": {
"ignore": true
},
Expand Down Expand Up @@ -737,6 +820,15 @@
},
"refdb": {
"functions": {
"git_refdb_backend_fs": {
"ignore": true
},
"git_refdb_init_backend": {
"ignore": true
},
"git_refdb_set_backend": {
"ignore": true
},
"git_refdb_new": {
"ignore": true
}
Expand All @@ -749,6 +841,12 @@
"cppClassName": "GitRefs",
"jsClassName": "Refs",
"functions": {
"git_reference__alloc": {
"ignore": true
},
"git_reference__alloc_symbolic": {
"ignore": true
},
"git_reference_foreach": {
"ignore": true
},
Expand Down Expand Up @@ -781,6 +879,13 @@
}
}
},
"reference_iterator": {
"cDependencies": [
"git2/sys/refdb_backend.h"
],
"needsForwardDeclaration": false,
"ignore": true
},
"refspec": {
"cType": "git_refspec",
"functions": {
Expand Down Expand Up @@ -913,6 +1018,9 @@
}
},
"status": {
"cDependencies": [
"git2/sys/diff.h"
],
"functions": {
"git_status_byindex": {
"ignore": true
Expand Down
20 changes: 20 additions & 0 deletions generate/libgit2-supplement.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,26 @@
"type": "enum"
}
],
[
"git_diff_perfdata",
{
"type": "struct",
"fields": [
{
"type": "unsigned int",
"name": "version"
},
{
"type": "size_t",
"name": "stat_calls"
},
{
"type": "size_t",
"name": "oid_calculations"
}
]
}
],
[
"git_merge_options",
{
Expand Down
2 changes: 1 addition & 1 deletion generate/templates/class_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {
#include "{{ dependency }}"
{%endeach%}

{%if needsForwardDeclaration == true%}
{%if needsForwardDeclaration %}
// Forward declaration.
struct {{ cType }} {
{%each fields as field%}
Expand Down
1 change: 0 additions & 1 deletion generate/v0.21.1.json

This file was deleted.

1 change: 1 addition & 0 deletions generate/v0.21.2.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Node.js libgit2 asynchronous native bindings",
"version": "0.2.0",
"libgit2": {
"sha": "b4d00c1d2466de3558a7cc6983dce4eb2ee98431",
"version": "0.21.1"
"sha": "4af08d9f69f151f6362df51d7d7f41527e2af05c",
"version": "0.21.2"
},
"libssh2": {
"url": "http://www.libssh2.org/download/libssh2-1.4.3.tar.gz",
Expand Down