Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RevertOptions parameter in Revert.revert is actually optional#1213

Merged
johnhaley81 merged 1 commit intonodegit:masternodegit/nodegit:masterfrom
rcjsuen:optional-revopsrcjsuen/nodegit:optional-revopsCopy head branch name to clipboard
Feb 26, 2017
Merged

RevertOptions parameter in Revert.revert is actually optional#1213
johnhaley81 merged 1 commit intonodegit:masternodegit/nodegit:masterfrom
rcjsuen:optional-revopsrcjsuen/nodegit:optional-revopsCopy head branch name to clipboard

Conversation

@rcjsuen
Copy link
Member

@rcjsuen rcjsuen commented Feb 4, 2017

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
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.