Skip to content

Add JavaScript version of git_tag_peel()#1269

Merged
cjhoward92 merged 1 commit into
nodegit:masterfrom
rcjsuen:peel
Dec 20, 2017
Merged

Add JavaScript version of git_tag_peel()#1269
cjhoward92 merged 1 commit into
nodegit:masterfrom
rcjsuen:peel

Conversation

@rcjsuen
Copy link
Copy Markdown
Member

@rcjsuen rcjsuen commented Apr 12, 2017

The generated code for git_tag_peel() is taking a pointer as a to return the peeled object. We should change the argument to be isReturn so that the generated API is sane from a JavaScript point of view.

The git_tag_peel() function from libgit2 naturally takes a pointer as
a parameter for providing the caller with the peeled object. However,
this kind of API does not make sense in the JavaScript world so we
need to change the generated code to return the actual object to the
caller.
@cjhoward92 cjhoward92 merged commit d3fcc53 into nodegit:master Dec 20, 2017
@rcjsuen rcjsuen deleted the peel branch December 20, 2017 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants