Skip to content

Commit 78ea4b7

Browse files
committed
fix statusfile
1 parent 9d4777b commit 78ea4b7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

generate/templates/templates/nodegit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ require("./enums");
7070
{% each . as idef %}
7171
{% if idef.type != "enum" %}
7272
{% each idef.functions as fn %}
73-
7473
{% if fn.useAsOnRootProto %}
74+
7575
// Inherit directly from the original {{idef.jsClassName}} object.
7676
_{{ idef.jsClassName }}.{{ fn.jsFunctionName }}.__proto__ =
7777
_{{ idef.jsClassName }};
@@ -83,6 +83,7 @@ require("./enums");
8383
// Assign the function as the root
8484
rawApi.{{idef.jsClassName}} =
8585
_{{ idef.jsClassName }}.{{ fn.jsFunctionName }};
86+
8687
{% endif %}
8788
{% endeach %}
8889
{% endif %}

lib/status_file.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ var StatusFile = function(args) {
8787
};
8888
};
8989

90+
NodeGit.StatusFile = StatusFile;
91+
9092
module.exports = StatusFile;

0 commit comments

Comments
 (0)