Open shijinglu opened 4 years ago
I don't think this can be fixed easily, because NodeGit.Stash.apply
does not return the code it promised to:
> NodeGit.Repository.open('/Users/abc/workspace/twosigma/big-mono/s123').then(function (repo){
... NodeGit.Stash.apply(repo, 0, null).then( function(result){
..... console.log(" result = " + result);
..... });
... })
Promise { _55: 0, _87: null, _28: [] }
> result = undefined
Supposedly, it should return something like
result = 0, 1, -13 etc
We need this code so we can tell if there is a conflict at applying: https://github.com/libgit2/libgit2/blob/HEAD/include/git2/stash.h#L182
As vanilla git says: