diff --git a/generate/input/libgit2-supplement.json b/generate/input/libgit2-supplement.json index d508a8294..f1553d80a 100644 --- a/generate/input/libgit2-supplement.json +++ b/generate/input/libgit2-supplement.json @@ -144,6 +144,16 @@ } }, "groups": [ + [ + "annotated", + [ + "git_annotated_commit_free", + "git_annotated_commit_from_fetchhead", + "git_annotated_commit_from_ref", + "git_annotated_commit_id", + "git_annotated_commit_lookup" + ] + ], [ "odb_object", [ @@ -420,6 +430,15 @@ ] }, "remove": { + "annotated": { + "functions": [ + "git_annotated_commit_free", + "git_annotated_commit_from_fetchhead", + "git_annotated_commit_from_ref", + "git_annotated_commit_id", + "git_annotated_commit_lookup" + ] + }, "odb": { "functions": [ "git_odb_object_data", diff --git a/generate/scripts/generateJson.js b/generate/scripts/generateJson.js index bc796bc29..4bfd3137e 100644 --- a/generate/scripts/generateJson.js +++ b/generate/scripts/generateJson.js @@ -46,7 +46,11 @@ module.exports = function generateJson() { !~supplement.remove[groupName].functions.indexOf(fnName); }); - memo[groupName] = functionNames; + // if we have an empty group then just ignore it + if (functionNames.length) { + memo[groupName] = functionNames; + } + return memo; }, {});