Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JavaScript version of git_tag_peel() #1269

Merged
merged 1 commit into from Dec 20, 2017
Merged

Conversation

rcjsuen
Copy link
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.

None yet

2 participants