Skip to content

RevertOptions parameter in Revert.revert is actually optional#1213

Merged
johnhaley81 merged 1 commit into
nodegit:masterfrom
rcjsuen:optional-revops
Feb 26, 2017
Merged

RevertOptions parameter in Revert.revert is actually optional#1213
johnhaley81 merged 1 commit into
nodegit:masterfrom
rcjsuen:optional-revops

Conversation

@rcjsuen

@rcjsuen rcjsuen commented Feb 4, 2017

Copy link
Copy Markdown
Member

libgit2's git_revert function does not actually require the revert options to be specified. It is merely a documentation oversight on their website. We should flag the given_opts argument as being isOptional so that null can be passed into the JavaScript function.

libgit2's git_revert function does not require the revert options to
be specified so the same should apply to the NodeGit API.
@johnhaley81

Copy link
Copy Markdown
Collaborator

Awesome! Thanks again @rcjsuen :)

@johnhaley81 johnhaley81 merged commit 027173f into nodegit:master Feb 26, 2017
@rcjsuen rcjsuen deleted the optional-revops branch February 26, 2017 07:20
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