We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83abd4b commit 4a34f3bCopy full SHA for 4a34f3b
src/diff_list.cc
@@ -211,6 +211,9 @@ Handle<Value> GitDiffList::Patch(const Arguments& args) {
211
toReturn->Set(String::NewSymbol("patch"), to);
212
213
if (delta_out != NULL) {
214
+ delta_out = (const git_diff_delta * )git_diff_delta_dup(delta_out);
215
+ }
216
+ if (delta_out != NULL) {
217
to = GitDelta::New((void *)delta_out);
218
} else {
219
to = Null();
v0.18.0.json
@@ -3689,6 +3689,7 @@
3689
"name": "delta_out",
3690
"jsName": "delta",
3691
"cType": "const git_diff_delta **",
3692
+ "copy": "git_diff_delta_dup",
3693
"cppClassName": "GitDelta",
3694
"jsClassName": "Delta",
3695
"isReturn": true,
0 commit comments