Skip to content

Commit 89c3489

Browse files
author
Carson Howard
committed
BREAKING: Made Merge.merge async
1 parent 54a2786 commit 89c3489

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

generate/input/descriptor.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,13 +1268,35 @@
12681268
"merge": {
12691269
"functions": {
12701270
"git_merge": {
1271+
"isAsync": true,
12711272
"args": {
1273+
"repo": {
1274+
"cppClassName": "GitRepository",
1275+
"cType": "git_repository *",
1276+
"jsClassName": "Repo"
1277+
},
12721278
"their_heads": {
12731279
"cType": "const git_annotated_commit **",
12741280
"cppClassName": "Array",
12751281
"jsClassName": "Array",
12761282
"arrayElementCppClassName": "GitAnnotatedCommit"
1283+
},
1284+
"their_heads_len": {
1285+
"cType": "size_t",
1286+
"cppClassName": "Number",
1287+
"jsClassName": "Number"
1288+
},
1289+
"merge_opts": {
1290+
"cType": "git_merge_options *",
1291+
"cppClassName": "GitMergeOptions"
1292+
},
1293+
"checkout_opts": {
1294+
"cType": "git_checkout_options *",
1295+
"cppClassName": "GitCheckoutOptions"
12771296
}
1297+
},
1298+
"return": {
1299+
"isErrorCode": true
12781300
}
12791301
},
12801302
"git_merge_analysis": {

test/tests/merge.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,9 +1539,7 @@ describe("Merge", function() {
15391539
.then(function(theirAnnotatedCommit) {
15401540
return NodeGit.Merge(repository, theirAnnotatedCommit);
15411541
})
1542-
.then(function(result) {
1543-
assert.equal(result, 0);
1544-
1542+
.then(function() {
15451543
assert.equal(repository.state(),
15461544
NodeGit.Repository.STATE.MERGE);
15471545
// verify the convenience method

0 commit comments

Comments
 (0)