Skip to content

Flag checkout_opts in git_reset as optional#4109

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

Flag checkout_opts in git_reset as optional#4109
ethomson merged 1 commit into
libgit2:masterfrom
rcjsuen:patch-1

Conversation

@rcjsuen

@rcjsuen rcjsuen commented Feb 4, 2017

Copy link
Copy Markdown
Contributor

The documentation for git_reset doesn't state that check-out_opts can be optional in its documentation. However, if you look at a test file you will see that NULL is used everywhere.

The header file should be updated to reflect that check_opts is actually an optional argument.

The check_outs argument can be NULL and should be flagged accordingly
in the header file.
@ethomson

ethomson commented Feb 8, 2017

Copy link
Copy Markdown
Member

Thanks! I really appreciate you going through the docs here - these are things that really help people get started with using the library. ❤️

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