Skip to content

Flag given_opts in git_revert as optional#4108

Merged
ethomson merged 1 commit into
libgit2:masterfrom
rcjsuen:patch-1
Feb 4, 2017
Merged

Flag given_opts in git_revert as optional#4108
ethomson merged 1 commit into
libgit2:masterfrom
rcjsuen:patch-1

Conversation

@rcjsuen
Copy link
Copy Markdown
Contributor

@rcjsuen rcjsuen commented Feb 4, 2017

The documentation for git_revert as of v0.24.2 doesn't state that it can be null. However, if you look at the code you will see that libgit2 will actually initialize options for the revert if NULL is passed into the function.

The header file should be updated as such to reflect that given_opts can actually be NULL.

The given_opts argument can actually be NULL and thus should be
flagged accordingly in the header file.
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Feb 4, 2017

You're quite right - thanks for catching this!

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