Skip to content

Commit 3da5dd9

Browse files
author
John Haley
committed
Rename Annotated to AnnotatedCommit
This fixes nodegit#437
1 parent 4610166 commit 3da5dd9

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

generate/input/libgit2-supplement.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@
144144
}
145145
},
146146
"groups": [
147+
[
148+
"annotated",
149+
[
150+
"git_annotated_commit_free",
151+
"git_annotated_commit_from_fetchhead",
152+
"git_annotated_commit_from_ref",
153+
"git_annotated_commit_id",
154+
"git_annotated_commit_lookup"
155+
]
156+
],
147157
[
148158
"odb_object",
149159
[
@@ -420,6 +430,15 @@
420430
]
421431
},
422432
"remove": {
433+
"annotated": {
434+
"functions": [
435+
"git_annotated_commit_free",
436+
"git_annotated_commit_from_fetchhead",
437+
"git_annotated_commit_from_ref",
438+
"git_annotated_commit_id",
439+
"git_annotated_commit_lookup"
440+
]
441+
},
423442
"odb": {
424443
"functions": [
425444
"git_odb_object_data",

generate/scripts/generateJson.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ module.exports = function generateJson() {
4646
!~supplement.remove[groupName].functions.indexOf(fnName);
4747
});
4848

49-
memo[groupName] = functionNames;
49+
// if we have an empty group then just ignore it
50+
if (functionNames.length) {
51+
memo[groupName] = functionNames;
52+
}
53+
5054
return memo;
5155
}, {});
5256

0 commit comments

Comments
 (0)